MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A question about sort


Hi,

m = Table[Random[], {3}, {3}];

and

Transpose[Sort[Transpose[Eigensystem[m]], First[#1] < First[#2] &]]

sort eigenvalues and eigenvectors beginning with the smalest
eigenvalue.

Regards
  Jens

Daohua Song wrote:
> 
> Hi everyone,
>    When i get the eigenvalues and eigenvectors for a matrix. i want to
> sort the eigenvalues and hope eigenvectors change the positions
> correspondingly.  How to do it ?
>    Thanks
> Song


  • Prev by Date: RE: A question about sort
  • Next by Date: RE: Change the sum order in a polynomial
  • Previous by thread: RE: A question about sort
  • Next by thread: Re: A question about sort