TAbstractMtxVecInt.MinEvery Method

Overload List

#SignatureDescription
1function MinEvery(const Vec: TMtxVecInt): TMtxVecInt;Vectorised minimum.
└ indexed: function MinEvery(const Vec: TMtxVecInt; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
2function MinEvery(const Vec1: TMtxVecInt; const Vec2: TMtxVecInt): TMtxVecInt;Compare all Vec1 elements with corresponding Vec2 elements and store the smaller value in Self.
└ indexed: function MinEvery(const Vec1: TMtxVecInt; const Vec2: TMtxVecInt; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Overload 1: function MinEvery(const Vec: TMtxVecInt): TMtxVecInt;

Vectorised minimum.

#NameTypeDescription
1VecTMtxVecIntsource TVecInt or TMtxInt

Result: stored in self (calling object), returns self for chaining

Remarks:

Compares Vec values with corresponding elements in the calling object and stores the smaller value in Self. Size and TMtxVecInt.IntPrecision property of the calling object are set automatically.

Indexed: function MinEvery(const Vec: TMtxVecInt; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Compare Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] and store result in Self.

#NameTypeDescription
1VecTMtxVecIntsource TVecInt or TMtxInt
2VecIndexInteger
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised, if Vec and calling object TMtxVecInt.IntPrecision property do not match or if array borders are overrun/underrun.

Overload 2: function MinEvery(const Vec1: TMtxVecInt; const Vec2: TMtxVecInt): TMtxVecInt;

Compare all Vec1 elements with corresponding Vec2 elements and store the smaller value in Self.

#NameTypeDescription
1Vec1TMtxVecIntsource TVecInt or TMtxInt
2Vec2TMtxVecIntsource TVecInt or TMtxInt

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the results in to the calling object. Size and TMtxVec.Complex property of calling object are adjusted automatically to match those of Vec1 and Vec2. An exception is raised if Vec1 and Vec2 size and TMtxVecInt.IntPrecision property do not match.

Indexed: function MinEvery(const Vec1: TMtxVecInt; const Vec2: TMtxVecInt; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Compare Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 object elements [Vec2Index]..[Vec2Index+Len-1] and store the smaller value in Self.

#NameTypeDescription
1Vec1TMtxVecIntsource TVecInt or TMtxInt
2Vec2TMtxVecIntsource TVecInt or TMtxInt
3Vec1IndexInteger
4Vec2IndexInteger
5IndexIntegerstart index
6LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the results in to the calling object elements [Index]..[Index+Len-1]. Size and TMtxVecInt.IntPrecision properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheck is True and array borders are overrun or underrun.