On Wed, Jun 1, 2011 at 22:06, Travis Oliphant <oliphant@enthought.com> wrote:
On May 31, 2011, at 8:08 PM, Charles R Harris wrote:
2) Ufunc fadd (nanadd?) Treats nan as zero in addition. Should make a faster version of nansum possible.
+0 --- Some discussion at the data array summit led to the view that supporting nan-enabled dtypes (nanfloat64, nanfloat32, nanint64) might be a better approach for nan-handling. This needs more discussion, but useful to mention in this context.
Actually, these are completely orthogonal to Chuck's proposal. The NA-enabled dtypes (*not* NaN-enabled dtypes) would have (x + NA) == NA, just like R. fadd() would be useful for other things. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco