Sort an array into ascending order by the first nKeys and
returns the permutation vector.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static void Ascending(
double[,] ra,
int nKeys,
int[] iperm
) |
Visual Basic (Declaration) |
---|
Public Shared Sub Ascending ( _
ra As Double(,), _
nKeys As Integer, _
iperm As Integer() _
) |
Visual C++ |
---|
public:
static void Ascending(
array<double,2>^ ra,
int nKeys,
array<int>^ iperm
) |
Parameters
- ra
- Type: array<
System..::.Double
,2>[,](,)[,]
double array to be sorted into ascending order.
- nKeys
- Type: System..::.Int32
int containing the first nKeys
columns of ra to be used as the sorting keys.
- iperm
- Type: array<
System..::.Int32
>[]()[]
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