[18691] in s-news-athena
[S] Sorting matrix elements, keeping track of original positions
daemon@ATHENA.MIT.EDU (Kim Elmore)
Wed Jul 21 15:43:38 1999
Date: Wed, 21 Jul 1999 14:39:37 -0500 (CDT)
From: Kim Elmore <elmore@nssl.noaa.gov>
To: S-News mail list <s-news@wubios.wustl.edu>
Message-Id: <Pine.GSO.4.10.9907211430080.4931-100000@ev.nssl.noaa.gov>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
I have a matrix of numbers and I wish to sort them in ascending
order (either way is fine) *and*, while doing this, keep track of the
indices describing their original position in the matrix. rank() does
this for vectors, but I can't see how to do this for matrices. Hints
appreciated!
Kim Elmore, [N5OP, PP ASMEL/Glider 2232456]
"All of Meteorology is divided into three parts: Yes, No and Maybe. The
greatest of these is Maybe." -- The original Latin appears to be garbled.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news