nag_reorder_vector (m01esc) rearranges a vector of arbitrary type data objects into the order specified by a vector of indices.
nag_reorder_vector (m01esc) uses a variant of list merging as described by
Knuth (1973). The function rearranges a set of
data objects of arbitrary type, which are stored in an array at intervals of length
stride, into the order specified by an array of indices.
Not applicable.
Not applicable.
The average time taken by the function is approximately proportional to
n.
The example program.