Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-29 Thread Keith Goodman
On Thu, Apr 29, 2010 at 9:56 AM, Charles R Harris wrote: > It looks like the consensus is that zero should be returned. This is a > change from current behaviour and that bothers me a bit. Here are some other > oddities > > In [6]: nanmax([nan]) > Out[6]: nan > > In [7]: nanargmax([nan]) > Out[7]:

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-29 Thread josef . pktd
On Thu, Apr 29, 2010 at 12:56 PM, Charles R Harris wrote: > > > On Wed, Apr 28, 2010 at 11:56 AM, T J wrote: >> >> On Mon, Apr 26, 2010 at 10:03 AM, Charles R Harris >> wrote: >> > >> > >> > On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris >> > wrote: >> >> >> >> Hi All, >> >> >> >> We need t

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-29 Thread Charles R Harris
On Wed, Apr 28, 2010 at 11:56 AM, T J wrote: > On Mon, Apr 26, 2010 at 10:03 AM, Charles R Harris > wrote: > > > > > > On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris > > wrote: > >> > >> Hi All, > >> > >> We need to make a decision for ticket #1123 regarding what nansum should > >> return w

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread T J
On Mon, Apr 26, 2010 at 10:03 AM, Charles R Harris wrote: > > > On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris > wrote: >> >> Hi All, >> >> We need to make a decision for ticket #1123 regarding what nansum should >> return when all values are nan. At some earlier point it was zero, but >> cur

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread Keith Goodman
On Mon, Apr 26, 2010 at 9:55 AM, Charles R Harris wrote: > Hi All, > > We need to make a decision for ticket #1123 regarding what nansum should > return when all values are nan. At some earlier point it was zero, but > currently it is nan, in fact it is nan whatever the operation is. That is > con

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread Warren Weckesser
Travis Oliphant wrote: > > On Apr 26, 2010, at 12:03 PM, Charles R Harris wrote: > >> >> >> On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris >> mailto:charlesr.har...@gmail.com>> wrote: >> >> Hi All, >> >> We need to make a decision for ticket #1123 >>

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread Travis Oliphant
On Apr 26, 2010, at 12:03 PM, Charles R Harris wrote: On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris > wrote: Hi All, We need to make a decision for ticket #1123 regarding what nansum should return when all values are nan. At some earlier point it was zero, but currently it is nan,

Re: [Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread Charles R Harris
On Mon, Apr 26, 2010 at 10:55 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Hi All, > > We need to make a decision for ticket > #1123regarding what > nansum should return when all values are nan. At some earlier > point it was

[Numpy-discussion] What should be the value of nansum of nan's?

2010-04-28 Thread Charles R Harris
Hi All, We need to make a decision for ticket #1123regarding what nansum should return when all values are nan. At some earlier point it was zero, but currently it is nan, in fact it is nan whatever the operation is. That is consistent, simpl