IMSL C# Numerical Library

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

Function to sort a matrix into descending order by specified keys and return the permutation vector.

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

Parameters

ra
double matrix to be sorted into descending order.
indkeys
int array containing the order the columns of ra are to be sorted. These values must be between 0 and one less than the number of columns in ra.
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