[Numpy-discussion] New functions.
Christopher Barker
Chris.Barker@noaa....
Wed Jun 1 12:30:20 CDT 2011
On 5/31/11 6:08 PM, Charles R Harris wrote:
> 2) Ufunc fadd (nanadd?) Treats nan as zero in addition.
so:
In [53]: a
Out[53]: array([ 1., 2., nan])
In [54]: b
Out[54]: array([0, 1, 2])
In [55]: a + b
Out[55]: array([ 1., 3., nan])
and nanadd(a,b) would yield:
array([ 1., 3., 2.)
I don't see how that is particularly useful, at least not any more
useful that nanprod, nandiv, etc, etc...
What am I missing?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
More information about the NumPy-Discussion
mailing list