m01def
m01def
© Numerical Algorithms Group, 2002.
Purpose
M01DEF Rank rows of a matrix, real numbers
Synopsis
[irank,ifail] = m01def(rm<,order,ifail>)
Description
M01DEF ranks the rows of a matrix. The ordering is determined by
first ranking the data in column 1, then ranking any tied rows
according to the data in column 2, and so on.
M01DEF uses a variant of list-merging. The routine takes
advantage of natural ordering in the data, and uses a simple list
insertion in a preparatory pass to generate ordered lists of
length at least 10. The ranking is stable: equal rows preserve
their ordering in the input data.
Parameters
m01def
Required Input Arguments:
rm (:,:) real
Optional Input Arguments: <Default>
order (1) string 'a'
ifail integer -1
Output Arguments:
irank (:) integer
ifail integer