sort(axis=-1)

Christian Kristukat ckkart at hoc.net
Wed Oct 18 20:10:06 CDT 2006


Travis Oliphant <oliphant.travis <at> ieee.org> writes:

> 
> Christian Kristukat wrote:
> > Hi,
> >
> > it seems that -1 as axis parameter is interpreted like in array indexing, 
> > -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.

Oh sure, I mixed that up with axis=None as Robert pointed out. However I don't
understand why axis=None wouldn't make sense for an inplace operation. Anyway,
it's not important. Sorry for the noise.

Christian



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