TVecInt::MaxMinIdx Method

Overload List

#SignatureDescription
1void MaxMinIdx(int &aMax, int &aMaxIdx, int &aMin, int &aMinIdx);Calculate minimum, maximum and their indices in one procedure call.
2void MaxMinIdx(int &aMax, int &aMaxIdx, int &aMin, int &aMinIdx, int Index, int Len);Calculate minimum, maximum and their indices in one procedure call.

Overload 1: void MaxMinIdx(int &aMax, int &aMaxIdx, int &aMin, int &aMinIdx);

Calculate minimum, maximum and their indices in one procedure call.

#NameTypeDescription
1aMaxint &Returns calling vector maximum value.
2aMaxIdxint &Returns calling vector maximum value index.
3aMinint &Returns calling vector monimum value.
4aMinIdxint &Returns calling vector minimum value index.
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 2: void MaxMinIdx(int &aMax, int &aMaxIdx, int &aMin, int &aMinIdx, int Index, int Len);

Calculate minimum, maximum and their indices in one procedure call.

#NameTypeDescription
1aMaxint &Returns calling vector elements [Index..Index+Len-1] maximum value.
2aMaxIdxint &Returns calling vector maximum value index.
3aMinint &Returns calling vector elements [Index..Index+Len-1] minimum value.
4aMinIdxint &Returns calling vector minimum value index.
5IndexintThe starting index at which to start the search.
6LenintThe number of elements to search starting from Index.
Remarks:

An exception is raised if array borders are overrun/underrun.

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