IMSL C# Numerical Library

Sort.Ascending Method (Double[,], Int32, Int32[])

Sort an array into ascending order by the first nKeys and returns the permutation vector.

public static void Ascending(
   double[,] ra,
   int nKeys,
   int[] iperm
);

Parameters

ra
double array to be sorted into ascending order.
nKeys
int containing the first nKeys columns of ra to be used as the sorting keys.
iperm
int is on input an array the same length as ra. On output, it contains 0, 1, ..., sorted using the same permutations applied to ra.

See Also

Sort Class | Imsl.Stat Namespace | Sort.Ascending Overload List