nag_rank_sort (m01dsc) ranks a vector of arbitrary data type objects in ascending or descending order.
nag_rank_sort (m01dsc) ranks a set of
data objects of arbitrary type, which are stored in the elements of an array at intervals of length
stride. The ranks are in the range 0 to
.
Either ascending or descending ranking order may be specified.
nag_rank_sort (m01dsc) uses a variant of list merging as described by
Knuth (1973).
Not applicable.
nag_rank_sort (m01dsc) is not threaded in any implementation.
The example program reads a list of real numbers and ranks them into ascending order.