[Numpy-discussion] Apply a function to all indices

David Warde-Farley dwf at cs.toronto.edu
Sun Feb 28 01:56:17 EST 2010


On 26-Feb-10, at 8:12 AM, Ernest Adrogué wrote:

> Thanks for the tip. I didn't know that...
> Also, frompyfunc appears to crash python when the last argument is 0:
>
> In [9]: func=np.frompyfunc(lambda x: x, 1, 0)
>
> In [10]: func(np.arange(5))
> Violació de segment
>
> This with Python 2.5.5, Numpy 1.3.0 on GNU/Linux.


(previous reply mysteriously didn't make it to the list...)

Still happening to me in latest svn. Can you file a ticket? http://projects.scipy.org/numpy/report

Thanks,
David


More information about the NumPy-Discussion mailing list