[Numpy-discussion] help speed up

Travis Oliphant oliphant.travis at ieee.org
Wed Mar 15 11:34:02 CST 2006


Ferenc.Pintye at eu.decoma.com wrote:
>
>
>
> Hi ,
>
> why is this little algorithm so too slow (10x) in Numpy  than in numarray ?
> (i think, the if-elif-else procedure runs with numpy array indicies so
> slow...)
>   

I'm pretty sure it's scalar math.   You get array scalars out of numpy 
arrays which don't have their own math tables, yet and so use the full 
umath for the moment.  It's pretty high on the list of things to fix 
before 1.0.

-Travis





More information about the Numpy-discussion mailing list