Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function MinEvery(const Vec: TMtxVecInt): TMtxVecInt; | Vectorised minimum. |
| └ indexed: function MinEvery(const Vec: TMtxVecInt; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 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. |
| └ 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | VecIndex | Integer | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Vec2 | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Vec2 | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | Vec1Index | Integer | |
| 4 | Vec2Index | Integer | |
| 5 | Index | Integer | start index |
| 6 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
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.