VectorInt::SortDescend Method

Overload List

#SignatureDescription
1TMtxVecInt *SortDescend() const;Sort all calling vector elements in descending order in-place.
2TMtxVecInt *SortDescend(const int Index, const int Len) const;Sort calling vector elements [Index..Index+Len-1] in descending order in-place.
3TVecInt *SortDescend(TVecInt *DstSortIdx) const;Sort all calling vector elements in descending order in-place.
4TMtxVecInt *SortDescend(TMtxVecInt *DstSortIdx, const int SortIdxIndex, const int Index, const int Len) const;

Overload 1: TMtxVecInt *SortDescend() const;

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

See Also: VectorInt::SortAscend
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

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

#NameTypeDescription
1Indexconst int
2Lenconst int
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TVecInt *SortDescend(TVecInt *DstSortIdx) const;

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

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

Returns: calling vector, storing sorted values.

Remarks:

Size of DstSortIdx and calling vector are adjusted automatically.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

#NameTypeDescription
1DstSortIdxTMtxVecInt *
2SortIdxIndexconst int
3Indexconst int
4Lenconst int
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler