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

Keith Goodman kwgoodman at gmail.com
Fri May 16 15:27:10 EDT 2008


On Fri, May 16, 2008 at 11:23 AM, Robert Kern <robert.kern at gmail.com> wrote:
> On Fri, May 16, 2008 at 11:23 AM, Stuart Brorson <sdb at cloud9.net> wrote:
>> In [66]: numpy.sign(numpy.nan)
>> Out[66]: 0.0
>>
>> IMO, the output should be NaN, not zero.
>
> You're probably right. I would like to see what other systems do
> before changing it, though.

octave:1> sign(nan)
ans = NaN



More information about the NumPy-Discussion mailing list