Fast check for NaN in NumPy

后端 未结 7 1857
时光说笑
时光说笑 2021-01-30 02:39

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

相关标签:
7条回答
  • 2021-01-30 03:38

    I think np.isnan(np.min(X)) should do what you want.

    0 讨论(0)
提交回复
热议问题