[Numpy-discussion] numpy.sign(numpy.nan)?????

Charles R Harris charlesr.harris@gmail....
Sat May 17 13:23:05 CDT 2008


On Sat, May 17, 2008 at 5:55 AM, Stuart Brorson <sdb@cloud9.net> wrote:

> >> In [66]: numpy.sign(numpy.nan)
> >> Out[66]: 0.0
> >>
> >> IMO, the output should be NaN, not zero.
>
> > The implementation is actually in a #define macro in
> > umathmodule.c.src. Look for _SIGN1 (and _SIGNC if you want to clean up
> > the complex versions, too).
>
> OK, I submitted a patch.  #794 in the tracker.
>

Let's wait until the 1.2 branch opens so as to avoid merge collisions. I'll
fix these things up at that point.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080517/f7f7a2e9/attachment.html 


More information about the Numpy-discussion mailing list