[Numpy-discussion] sign, signbit and nans once again.

Charles R Harris charlesr.harris@gmail....
Mon Mar 9 22:31:39 CDT 2009


I want to get this settled for the 1.3 release. My thoughts are:


   - signbit returns the signbit whether or not the number is a nan.
   - sign returns nan for nans.

Copysign is currently unimplemented. I'm thinking of adding it, but making
it return nans when copying the sign of a nan. This isn't how it is in BSD,
but the behavior in this case is unspecified by the standard.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090309/a1282193/attachment-0001.html 


More information about the Numpy-discussion mailing list