Sorting eigenvalues and vectors together

Sven Schreiber svetosch at gmx.net
Fri Oct 27 16:04:13 CDT 2006


jeremito schrieb:
> argsort() will do the trick.  Thanks once again.  
> Jeremy
> 

I was a bit confused by your question, maybe you can clarify what you
did in the end.

IIRC, if the eigenvalues returned by numpy are real numbers (due to the
type of the underlying matrix and algorithm), then they are
automatically returned  ascending (again, IIRC). That would mean you
don't have to do anything. But if they're complex, it's not obvious how
to sort them. Probably by modulus. So what exactly was your problem?

ciao,
Sven

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