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

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static void Descending(
	double[,] ra,
	int[] indkeys,
	int[] iperm
)
Visual Basic (Declaration)
Public Shared Sub Descending ( _
	ra As Double(,), _
	indkeys As Integer(), _
	iperm As Integer() _
)
Visual C++
public:
static void Descending(
	array<double,2>^ ra, 
	array<int>^ indkeys, 
	array<int>^ iperm
)

Parameters

ra
Type: array< System..::.Double ,2>[,](,)[,]
double matrix to be sorted into descending order.
indkeys
Type: array< System..::.Int32 >[]()[]
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
Type: array< System..::.Int32 >[]()[]
an int array specifying the rearrangement (permutation) of the observations (rows) of ra.

See Also