On 1/4/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > On 1/4/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > How do I test if an array contains NaN ? > > Or others like inf ...? > > isnan() > ~isfinite() > any()
Aah ! thanks, you mean I have to create an intermediate array that tells me for every element if is's a nan and then check any( ... ) on this !? That's OK for what I need -- seems excessive for large arrays though .... Thanks again, Sebastian _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion