[Numpy-discussion] does numpy have funcs like isanynan() or isallfinite()?

dmitrey dmitrey.kroshko@scipy....
Sat Sep 6 02:21:51 CDT 2008

hi all,

does numpy have funcs like isanynan(array) or isallfinite(array)?

I very often use any(isnan(my_array)) or all(isfinite(my_array)), I 
guess having a single case triggered on would be enough here to omit 
further checks.

Regards, D.

More information about the Numpy-discussion mailing list