TMtxByte::Max Method

Overload List

#SignatureDescription
1int Max();Maximum value.
2int Max(int Index, int Len);Calculate the maximum value from calling object elements [Index]..[Index+Len-1].
3int Max(int &aIndex);Calculate the maximum value of all calling object elements.
4int Max(int &aIndex, int Index, int Len);Calculate the maximum value of calling object elements [Index..Index+Len-1].

Overload 1: int Max();

Maximum value.

Returns: The maximum value of all calling object elements. The result is an integer value.

See Also: TMtxByte::Max
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 2: int Max(int Index, int Len);

Calculate the maximum value from calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexint
2Lenint
Remarks:

The result is an integer value. An exception is raised if array borders are overrun.

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

Overload 3: int Max(int &aIndex);

Calculate the maximum value of all calling object elements.

#NameTypeDescription
1aIndexint &Stores maximum value index.

Returns: the maximum of all calling vector integer elements in-place.

See Also: TMtxByte::Min
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 4: int Max(int &aIndex, int Index, int Len);

Calculate the maximum value of calling object elements [Index..Index+Len-1].

#NameTypeDescription
1aIndexint &Returns maximum value index.
2IndexintThe starting index at which to start the search.
3LenintThe number of elements to search starting from Index.

Returns: the maximum of calling vector integer elements [Index..Index+Len-1].

Remarks:

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

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