Re: A question about sort
- To: mathgroup at smc.vnet.net
- Subject: [mg48210] Re: A question about sort
- From: Thomas Burton <tburton at brahea.com>
- Date: Tue, 18 May 2004 04:16:20 -0400 (EDT)
- Organization: Brahea Consulting
- References: <c89q6d$t65$1@smc.vnet.net>
- Reply-to: tburton at brahea.com
- Sender: owner-wri-mathgroup at wolfram.com
With[{o = Ordering[values]},
{values[[o]],vectors[[o]]}
]
Tom Burton
On Sun, 16 May 2004 21:38:53 -1000, Daohua Song wrote
(in article <c89q6d$t65$1 at smc.vnet.net>):
> 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
>