[Numpy-discussion] NEP for faster ufuncs

Mark Wiebe mwwiebe@gmail....
Wed Dec 22 15:02:03 CST 2010


On Wed, Dec 22, 2010 at 12:42 PM, Mark Wiebe <mwwiebe@gmail.com> wrote:
<snip>

> I think numexpr could get a nice boost from using the new iterator
> internally though
>

There's actually a trivial way to do this with very minimal changes to
numexpr - the 'itview' mechanism. Create the new iterator, call
NpyIter_GetIterView(it,i) (or it.itviews in Python) to get compatibly
reordered views of the inputs, then continue with the existing code.

-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20101222/701659ed/attachment.html 


More information about the NumPy-Discussion mailing list