MathGroup Archive 2004

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

Search the Archive

Re: A question about sort

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48204] Re: A question about sort
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 18 May 2004 04:16:05 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <c89q6d$t65$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

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