2008/8/11 Charles Doutriaux <[EMAIL PROTECTED]>: > Seems to me like min should automagically call nanmin if it spots any > nan no ?
Nanmin is quite a bit slower: In [2]: x = np.random.random((5000)) In [3]: timeit np.min(x) 10000 loops, best of 3: 24.8 µs per loop In [4]: timeit np.nanmin(x) 10000 loops, best of 3: 136 µs per loop So, I'm not sure if that will happen. One option is to use `nanmin` by default, and to provide `min` for people who need the speed. The fact that results with nan's are almost always unexpected is certainly a valid concern. Cheers Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion