sort(axis=-1)
Robert Kern
robert.kern at gmail.com
Wed Oct 18 11:55:51 CDT 2006
Christian Kristukat wrote:
> Hi,
>
> it seems that -1 as axis parameter is interpreted like in array indexing, i.e.
> -1 means the last axis rather than meaning the only axis of the flattened
> representation, like for example with take().
> Is that intendend?
take(axis=-1) also goes over the last axis. axis=None operates over the
flattened array. axis=None is the default for take(), but axis=-1 is default for
sort() since axis=None doesn't make much sense for an inplace operation and is
not permitted.
--
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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Numpy-discussion
mailing list