any(isnan,arr) is probably the most compact syntax.
On Monday, December 15, 2014 3:33:55 PM UTC-5, Evan Pu wrote: > > 1 in [1,2,3] # returns true > > NaN in [NaN, 1.0, 2.0] # returns false > > how do I test if a float64 NaN is present in an array? I'm doing some > numerical computation and it can have some NaN error, I want to drop the > arrays that has NaN. >
