Fri May 16 14:29:36 CDT 2008
On Fri, May 16, 2008 at 2:27 PM, Keith Goodman <email@example.com> wrote:
> On Fri, May 16, 2008 at 11:23 AM, Robert Kern <firstname.lastname@example.org> wrote:
>> On Fri, May 16, 2008 at 11:23 AM, Stuart Brorson <email@example.com> wrote:
>>> 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.
> octave:1> sign(nan)
> ans = NaN
Works for me.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion