[Numpy-discussion] What is the sign of nan?

Charles R Harris charlesr.harris@gmail....
Mon Sep 29 16:52:30 CDT 2008


Hi All,

I've been cleaning up the ufunc loops and the sign function currently
doesn't have a defined behavior for nans. This makes the results depend on
the order/type of comparisons in the code, which looks fragile to me. So
what should it return? I vote for nan but am open for suggestions.

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


More information about the Numpy-discussion mailing list