[Numpy-discussion] numexpr with the new iterator

2011-01-09 Thread Mark Wiebe
As a benchmark of C-based iterator usage and to make it work properly in a multi-threaded context, I've updated numexpr to use the new iterator. In addition to some performance improvements, this also made it easy to add optional out= and order= parameters to the evaluate function. The numexpr

Re: [Numpy-discussion] numexpr with the new iterator

2011-01-09 Thread John Salvatier
Is evaluate_iter basically numpexpr but using your numpy branch or are there other changes? On Sun, Jan 9, 2011 at 2:45 PM, Mark Wiebe mwwi...@gmail.com wrote: As a benchmark of C-based iterator usage and to make it work properly in a multi-threaded context, I've updated numexpr to use the new

Re: [Numpy-discussion] numexpr with the new iterator

2011-01-09 Thread Mark Wiebe
That's right, essentially all I've done is replaced the code that handled preparing the arrays and producing blocks of values for the inner loops. There are three new parameters to evaluate_iter as well. It has an out= parameter just like ufuncs do, an order= parameter which controls the layout