Re: [Numpy-discussion] maximmum.reduce and nans

2006-06-14 Thread Sasha
On 6/14/06, Martin Wiechert <[EMAIL PROTECTED]> wrote: >... > does anybody know, why > > maximum.reduce (()) > > does not return -inf? > Technically, because >>> maximum.identity is None True It is theoretically feasible to change maximum.identity to -inf, but that would be inconsistent with the

[Numpy-discussion] maximmum.reduce and nans

2006-06-14 Thread Martin Wiechert
Hi list, does anybody know, why maximum.reduce (()) does not return -inf? Looks very natural to me and as a byproduct maximum.reduce would ignore nans, thereby removing the need of nanmax etc. The current convention gives >>> from numpy import * >>> maximum.reduce ((1,nan)) 1.0 >>> maximum.r