[Numpy-discussion] comparing arrays with NaN in them.

Timothy Hochberg tim.hochberg@ieee....
Fri Aug 24 11:15:09 CDT 2007


On 8/24/07, Christopher Barker <Chris.Barker@noaa.gov> wrote:
[SNIP]


> You can have several  different NaN,
>
> You can? I thought NaN was defined by IEEE 754 as a particular bit
> pattern (one for each precision, anyway).


There's more than one way to spell NaN in binary and they tend to mean
different things IIRC. Signalling NaNs and quiet NaNs and all of that. (Can
you tell how superficial my knowledge is here, good).

However, if you are inserting the NaNs yourself as placeholders, then they
should all be the same kind and a binary comparison should be fine.


[SNIP]

-Chris
>
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> Chris.Barker@noaa.gov
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
.  __
.   |-\
.
.  tim.hochberg@ieee.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070824/ffec7344/attachment.html 


More information about the Numpy-discussion mailing list