IMSL C# Numerical Library

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

Function to sort an array into descending order by the first nKeys and returns the permutation vector.

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

Parameters

ra
a double array to be sorted into descending order.
nKeys
int containing the first nKeys columns of ra to be used as the sorting keys.
iperm
an int array specifying the rearrangement (permutation) of the observations (rows) of ra.

See Also

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