Overload List
Overload 1: function Divide(const Src: TMtxVecInt): TMtxVecInt; overload;
Divide calling object elements with Src elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Indexed: function Divide(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;
Divide calling object elements with Src elements [SrcIndex..SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | SrcIndex | integer | source start index |
| 3 | Index | integer | start index |
| 4 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Divide calling object elements [Index..Index+Len-1] with Src elements [SrcIndex..SrcIndex+Len-1]. An exception is raised if array borders are overrun.
Overload 2: function Divide(const Src1, Src2: TMtxVecInt): TMtxVecInt; overload;
Divides coresponding elements in Src1 with Src2.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src1 | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Src2 | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Returns: the result of dividing Src1 values with coresponding Src2 values.
Overload 3: function Divide(const X, Y, Z: TMtxVecInt): TMtxVecInt; overload;
Compute X / (Y*Z)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | Z | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
The following expression would also run at the same or higher speed, when passing Y also for the Z parameter:
X / (Y^2)
Overload 4: function Divide(const Src: TMtxVecInt; Value: integer): TMtxVecInt; overload;
Divide all Src vector elements with integer Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Value | integer |
Result: stored in self (calling object), returns self for chaining
Size of calling vector is adjusted automatically.
Indexed: function Divide(const Src: TMtxVecInt; Value, SrcIndex, Index, Len: integer): TMtxVecInt; overload;
Divide Src vector elements [SrcIndex..SrcIndex+Len-1] with integer Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Value | integer | |
| 3 | SrcIndex | integer | source start index |
| 4 | Index | integer | start index |
| 5 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Divide Src elements [SrcIndex..SrcIndex+Len-1] with integer Value and store tje results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.
Overload 5: function Divide(Value: integer): TMtxVecInt; overload;
Divide all calling vector elements with integer value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | integer |
Result: stored in self (calling object), returns self for chaining
Indexed: function Divide(Value, Index, Len: integer): TMtxVecInt; overload;
Divide calling vector elements [Index..Index+Len-1] with integer value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | integer | |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.
Overload 6: function Divide(const X: integer; const Y, Z: TMtxVecInt): TMtxVecInt; overload;
Compute xScalar / (Y*Z)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | integer | |
| 2 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | Z | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Overload 7: function Divide(const Src1, Src2: TMtxVecInt; SrcIndex1, SrcIndex2, Index, Len: integer): TMtxVecInt; overload;
Divide coresponding elements in Src1 with Src2.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src1 | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Src2 | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | SrcIndex1 | integer | |
| 4 | SrcIndex2 | integer | |
| 5 | Index | integer | start index |
| 6 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Divide Src2 elements [Src2Index..Src2Index+Len-1] with corrresponding Src1 elements [Src1Index..Src1ndex+Len-1] and store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.
Overload 8: function Divide(const X: TMtxVecInt; xIndex: integer; const Y: TMtxVecInt; yIndex: integer; const Z: TMtxVecInt; zIndex: integer; Index, Len: integer): TMtxVecInt; overload;
Compute X/( Y*Z ) on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | xIndex | integer | |
| 3 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 4 | yIndex | integer | |
| 5 | Z | TMtxVecInt | source TVecInt or TMtxInt |
| 6 | zIndex | integer | |
| 7 | Index | integer | start index |
| 8 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 9: function Divide(const X: integer; const Y: TMtxVecInt; yIndex: integer; const Z: TMtxVecInt; zIndex: integer; Index, Len: integer): TMtxVecInt; overload;
Compute xScalar / (Y*Z) on sub array
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | integer | |
| 2 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | yIndex | integer | |
| 4 | Z | TMtxVecInt | source TVecInt or TMtxInt |
| 5 | zIndex | integer | |
| 6 | Index | integer | start index |
| 7 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining