Vector.MaxEvery Method

Overload List

#SignatureDescription
1function MaxEvery(const Vec: TMtxVec): TMtxVec;Vectorised maximum.
└ indexed: function MaxEvery(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
2function MaxEvery(const Vec1: TMtxVec; const Vec2: TMtxVec): TMtxVec;Compare all Vec1 elements with corresponding Vec2 elements and store bigger value in Self.
└ indexed: function MaxEvery(const Vec1: TMtxVec; const Vec2: TMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function MaxEvery(const Vec: TMtxVec): TMtxVec;

Vectorised maximum.

#NameTypeDescription
1VecTMtxVec

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

Remarks:

Compares Vec values with corresponding elements in the calling object and stores the bigger value in Self. Size and TMtxVec.Complex property of the calling object are set automatically. Supports real value data only.

See Also: Vector.MinEvery

Indexed: function MaxEvery(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1VecTMtxVec
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 TMtxVec.Complex property do not match or if array borders are overrun/underrun. Supports real value data only.

Overload 2: function MaxEvery(const Vec1: TMtxVec; const Vec2: TMtxVec): TMtxVec;

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

#NameTypeDescription
1Vec1TMtxVec
2Vec2TMtxVec

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 TMtxVec.Complex property do not match. Supports real value data only.

Indexed: function MaxEvery(const Vec1: TMtxVec; const Vec2: TMtxVec; Vec1Index: Integer; Vec2Index: Integer; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1Vec1TMtxVec
2Vec2TMtxVec
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 TMtxVec.Complex 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.