m01edf is designed to be used typically in conjunction with the M01D ranking routines. After one of the M01D routines has been called to determine a vector of ranks,
m01edf can be called to rearrange a vector of complex numbers into the rank order. If the vector of ranks has been generated in some other way, then
m01zbf should be called to check its validity before
m01edf is called.
None.
If on entry
${\mathbf{ifail}}=0$ or
$-1$, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
If
${\mathbf{ifail}}={\mathbf{2}}$ or
${\mathbf{3}}$, elements
m1 to
m2 of
irank do not contain a permutation of the integers
m1 to
m2. On exit, the contents of
cv may be corrupted. To check the validity of
irank without the risk of corrupting
cv, use
m01zbf.
Not applicable.
This example reads a matrix of complex numbers and rearranges its rows so that the elements in the
$k$th column are in ascending order of modulus. To do this, the program first calls
m01daf to rank the moduli of the elements in the
$k$th column, and then calls
m01edf to rearrange each column into the order specified by the ranks. The value of
$k$ is read from the datafile.