From: Keith G. <kwg...@gm...> - 2006-11-11 23:25:14
|
On 11/11/06, Robert Kern <rob...@gm...> wrote: > Barring a clever solution (at least cleverer than I feel like being > immediately), the way to solve this would be to check for nans in the array and > deal with them separately (or simply ignore them in the case of x.min()). > However, this checking would slow down the common case that has no nans > (sans nans, if you will). I'm not one of the fans of sans nans. I'd prefer a slower min() that ignored nans. But I'm probably in the minority. How about a nanmin() function? |