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

Charles R Harris charlesr.harris at gmail.com
Mon Mar 9 23:31:39 EDT 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.python.org/pipermail/numpy-discussion/attachments/20090309/a1282193/attachment.html>


More information about the NumPy-Discussion mailing list