TVecInt::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.
3TVecInt *SortDescend();Sort all calling vector elements in descending order in-place.
4TVecInt *SortDescend(TVecInt *DstSortIdx);Sort all calling vector elements in descending order in-place.

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: TVecInt *SortDescend();

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

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

Overload 4: TVecInt *SortDescend(TVecInt *DstSortIdx);

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

#NameTypeDescription
1DstSortIdxTVecInt *After execution stores sorted values indices.
Remarks:

Size of DstSortIdx and calling vector are adjusted automatically.

Declared in Dew::Math::TVecInt · Dew.Math/MtxVecInt.h · Cross-compiler