From: Sven S. <sve...@gm...> - 2006-10-27 21:04:43
|
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 |