You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > Min Method > TMtxVecInt.Min Method (integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.Min Method (integer)

Calculate the minimum value of all calling object elements.

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

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

Uses MtxVecInt; procedure Example; var a: TVecInt; min, ind: integer; begin CreateIt(a); try a.SetIt(1,2,3,4]); min := a.Min(ind); //min=1, ind = 0 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!