VectorInt::SortAscend Method

Overload List

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

Overload 1: TMtxVecInt *SortAscend() const;

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

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

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

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

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

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

Sort all calling vector elements in ascending 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 *SortAscend(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