[Numpy-discussion] NEP for faster ufuncs

Mark Wiebe mwwiebe at gmail.com
Wed Dec 22 16:02:03 EST 2010


On Wed, Dec 22, 2010 at 12:42 PM, Mark Wiebe <mwwiebe at 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.python.org/pipermail/numpy-discussion/attachments/20101222/701659ed/attachment.html>


More information about the NumPy-Discussion mailing list