[Numpy-discussion] using reducing functions without eliminating dimensions?

Robert Kern robert.kern@gmail....
Thu Apr 9 01:31:33 CDT 2009

On Thu, Apr 9, 2009 at 01:29, Anne Archibald <peridot.faceted@gmail.com> wrote:

> What's wrong with np.amin(a,axis=-1)[...,np.newaxis]?

It's cumbersome, particularly when you have axis=arbitrary_axis.

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