[SciPy-user] NaN's in numpy (and Scipy)

Alan Jackson alan at ajackson.org
Thu Jan 4 21:00:31 CST 2007

I've been working with numnpy (Numeric actually, we're a little behind), in a
framework that requires that we allow for NaN's to appear at random in our
arrays. We have handled that with masked arrays, but I am finding those
somewhat awkward to work with, and given that the NaN's will normally be
rare, it seems a shame to double the storage costs that way. 

Any suggestions for a better overall strategy for dealing with NaN's?

| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan at ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |

More information about the SciPy-user mailing list