ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Sorted array of the same size as A
Sort data in A along dimension 'dim'
[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetArray<string> sort( InArray<string> A, OutArray<double> Indices, int dim, bool descending )
Parameters
- A
- Type: ILNumericsInArrayString
Input array: empty, scalar, vector or matrix - Indices
- Type: ILNumericsOutArrayDouble
[Output] Returns permutation matrix also - dim
- Type: SystemInt32
Dimension to sort along - descending
- Type: SystemBoolean
Specifies the direction of sorting
Return Value
Type: RetArrayStringSorted array of the same size as A
Remarks
The data in A will be sorted using the bucket sort algorithm. Data along the dimension dim will get sorted independently from data in the next row/column.
This overload also returns an array 'Indices' which will hold the indices into the original elements after sorting. Elements of 'Indices' are of type double.
[ILNumerics Computing Engine]
See Also