sort(axis=-1)

Travis Oliphant oliphant.travis at ieee.org
Wed Oct 18 12:11:25 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?
>
>   

I don't understand the question.   Yes, sort(axis=-1) sorts along the 
last dimension.

AFAIK, take has the same meaning for axis.

-Travis


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