[Numpy-discussion] Thoughts for 1.1

Robert Kern robert.kern at gmail.com
Wed Apr 2 19:17:59 EDT 2008


On undefined, Timothy Hochberg <tim.hochberg at ieee.org> wrote:

> As to what to name it, if it did come to pass. I'm not happy 'keepshape'
> since we'd not actually be keeping the shape, just the number of dimensions.
> 'keepdims' is better, but still seem awkard. I'd prefer something like
> 'reduce', so the signature would be a:
>       mean(axis=None, dtype=None, out=None, reduce=True).

I imagine we would end up adding this capability to the .reduce()
method of all binary ufuncs, so 'reduce' seems ... odd. 'keeprank'?

-- 
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



More information about the NumPy-Discussion mailing list