You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > Max Method > TDenseMtxVec.Max Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.Max Method ()

Maximum value.

Pascal
function Max: double; overload;

the maximum value of all calling object elements. The result is a real value.

An exception is raised is calling object TMtxVec.Complex is true.

var a: TVec; b: double; begin CreateIt(a); try a.SetIt(False,[1,2,3,4]); b := a.Max; // b = 4 finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!