You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it matters much, the ieee spec says the sign of nan is undefined. This turned up when I was working on the signbit functions and it just seemed the right thing to do. But go ahead and close the ticket, anything that depends on the sign of a nan is probably an error.
However, the gcc NAN macro give a positive nan and the sign of nans is accessible through the signbit ufunc. Copysign also returns the signbit for nans. So it just seems a little nicer to make it positive. The easy way is to use copysign on the computed nan:
Original ticket http://projects.scipy.org/numpy/ticket/920 on 2008-10-02 by @charris, assigned to unknown.
On my reverse endian machine
The text was updated successfully, but these errors were encountered: