[Numpy-discussion] Apply a function to all indices

Ernest Adrogué eadrogue@gmx....
Sun Feb 28 10:05:35 CST 2010


28/02/10 @ 01:56 (-0500), thus spake David Warde-Farley:
> 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

Filed.
http://projects.scipy.org/numpy/ticket/1416

Cheers.


More information about the NumPy-Discussion mailing list