Re: [Cython] aritmetic with arrays in Cython

2014-08-11 Thread Stefan Behnel
Ian Henriksen schrieb am 12.08.2014 um 04:34: > On Sun, Aug 10, 2014 at 12:41 PM, Sturla Molden wrote: >> Ian Henriksen wrote: >>> Maybe I should clarify a little about why eigen is a good place to start. >>> According to >> href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html";> >> http:/

[Cython] bug: constructor declarations not working

2014-08-11 Thread Marcus Brinkmann
Hi, I want to declare and define C++ classes from Cython. Sure, I could write them in native C++, but it's just small glue code, and I prefer to let Cython handle the GIL and all the other good stuff. First, for reference, the following works (c.f. tests/run/cpp_classes_def.pyx): == cytho

Re: [Cython] aritmetic with arrays in Cython

2014-08-11 Thread Ian Henriksen
On Sun, Aug 10, 2014 at 12:41 PM, Sturla Molden wrote: > Ian Henriksen > wrote: > > > Maybe I should clarify a little about why eigen is a good place to start. > > According to > href="http://eigen.tuxfamily.org/dox/TopicLazyEvaluation.html";> > http://eigen.tuxfamily.org/dox/TopicLazyEvaluatio

[Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-11 Thread Leon Bottou
The attached cython program uses an extension class to represent a unit of work. The with parallel block temporarily gets the gil to allocate the object, then release the gil and performs the task with a for i in prange(...) statement. My expectation was to have w recognized as a thread private