IMSL C# Numerical Library

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

Sort an integer array into descending order and returns the permutation vector.

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

Parameters

ra
int array to be sorted into descending order
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.Descending Overload List