You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > Max Method > MatrixInt.Max Method (integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.Max Method (integer)

Calculate the maximum value of all calling object elements.

Pascal
function Max(out aIndex: integer): integer; overload;
Parameters 
Description 
aIndex 
Stores maximum value index. 

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

Uses MtxVecInt; procedure Example; var a: TMtxInt; max, ind: integer; begin CreateIt(a); try a.SetIt(1,2,3,4]); max := a.Max(ind); // max=4, ind = 3 finally FreeIt(a); end end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!