Fri May 16 14:32:25 CDT 2008
>> In : numpy.sign(numpy.nan)
>> Out: 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.
Here's what Matlab does:
>> A = nan
>> B = [1, nan]
Interactive Supercomputing, inc.
135 Beaver Street | Waltham | MA | 02452 | USA
More information about the Numpy-discussion