Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread Robert Kern
Sven Schreiber wrote: > 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). This should be considered an implementation detail that may change in the future, so don

Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread Sven Schreiber
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

Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread jeremito
argsort() will do the trick. Thanks once again. Jeremy - 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

Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread Robert Kern
jeremito wrote: > I am using a = numpy.linalg.eig(A) to get the eigenvalues and > eigenvectors. I am interested only in the largest eigenvalue so I > would like to sort the first element of a. But if I do that, I won't > know what is the associated eigenvector. Is there a function that will > so

Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread Keith Goodman
On 10/27/06, jeremito <[EMAIL PROTECTED]> wrote: > I am using a = numpy.linalg.eig(A) to get the eigenvalues and > eigenvectors. I am interested only in the largest eigenvalue so I > would like to sort the first element of a. But if I do that, I won't > know what is the associated eigenvector. I

Re: [Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread A. M. Archibald
On 27/10/06, jeremito <[EMAIL PROTECTED]> wrote: > I am using a = numpy.linalg.eig(A) to get the eigenvalues and > eigenvectors. I am interested only in the largest eigenvalue so I > would like to sort the first element of a. But if I do that, I won't > know what is the associated eigenvector. I

[Numpy-discussion] Sorting eigenvalues and vectors together

2006-10-27 Thread jeremito
I am using a = numpy.linalg.eig(A) to get the eigenvalues and eigenvectors. I am interested only in the largest eigenvalue so I would like to sort the first element of a. But if I do that, I won't know what is the associated eigenvector. Is there a function that will sort the values and vectors