TMtxSmallInt::SortDescend Method

Overload List

#SignatureDescription
1TMtxVecInt *SortDescend(int Index, int Len);Sort calling vector elements [Index..Index+Len-1] in descending order in-place.
2TMtxVecInt *SortDescend(TMtxVecInt *DstSortIdx, int SortIdxIndex, int Index, int Len);Sort all calling vector elements in descending order in-place.
3TMtxInt *SortDescend();Sorts the elements in a matrix row(s) in descending order.
4TMtxInt *SortDescend(int Col);Performs row based sort in descending order. The Col parameter defines the column based on which the rows are compared with each other.

Overload 1: TMtxVecInt *SortDescend(int Index, int Len);

Sort calling vector elements [Index..Index+Len-1] in descending order in-place.

#NameTypeDescription
1Indexint
2Lenint
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 2: TMtxVecInt *SortDescend(TMtxVecInt *DstSortIdx, int SortIdxIndex, int Index, int Len);

Sort all calling vector elements in descending order in-place.

#NameTypeDescription
1DstSortIdxTMtxVecInt *After execution stores sorted values indices.
2SortIdxIndexintThe starting index at which to store sorted values indices in DstSortIdx.
3IndexintThe starting index at which to start the sort.
4LenintThe number of elements to sort starting from including zero-based Index.

Returns: calling vector, storing sorted values.

Remarks:

Size of DstSortIdx and calling vector are adjusted automatically.

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 3: TMtxInt *SortDescend();

Sorts the elements in a matrix row(s) in descending order.

Remarks:

Sorts the elements in calling matrix row(s) in descending order in-place.

Note
Each row is sorted independently from the other.

See Also: TMtxSmallInt::SortAscend
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 4: TMtxInt *SortDescend(int Col);

Performs row based sort in descending order. The Col parameter defines the column based on which the rows are compared with each other.

#NameTypeDescription
1Colint
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler