[SciPy-dev] Sorted Eigenvalues/vectors
Mon Jul 9 14:12:53 CDT 2007
Sounds like you're looking for argsort. Something like:
ix = numpy.argsort(eigvals)
sorted_eigvals = eigvals[ix]
sorted_eigvecs = eigvecs[:,ix]
On 7/10/07, Jeremy Conlin <email@example.com> wrote:
> I have a need to have the eigenvalues/vectors calculated in my code
> returned sorted by eigenvalue. Of course this necessitates sorting
> the eigenvectors accordingly. If I understand correctly, a method for
> this doesn't exist in the current distribution so I wrote a simple one
> myself. Is this something that the community is interested in?
> Should a method like this be included in the scipy distribution? It
> is small, but I think very useful.
> Jeremy Conlin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev