I\'m looking for the fastest way to check for the occurrence of NaN (np.nan) in a NumPy array X. np.isnan(X) is out of the question, since
np.nan
X
np.isnan(X)
I think np.isnan(np.min(X)) should do what you want.
np.isnan(np.min(X))