Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Add(const Src: TMtxVecInt): TMtxVecInt; | Add Src elements to calling vector elements. |
| └ indexed: function Add(const Src: TMtxVecInt; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt; | ||
| 2 | function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt): TMtxVecInt; | Add coresponding elements in Src2 to Src1. |
| 3 | function Add(const X: TMtxVecInt; const Y: TMtxVecInt; const Z: TMtxVecInt): TMtxVecInt; | self = X + Y + Z |
| └ indexed: function Add(const X: TMtxVecInt; XIndex: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: TMtxVecInt; zIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 4 | function Add(const X: TMtxVecInt; const Y: TMtxVecInt; const Z: Integer): TMtxVecInt; | self = X + Y + zScalar |
| └ indexed: function Add(const X: TMtxVecInt; XIndex: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 5 | function Add(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt; | Add integer Value to all Src elements. |
| └ indexed: function Add(const Src: TMtxVecInt; const Value: Integer; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt; | ||
| 6 | function Add(const Value: Integer): TMtxVecInt; | Add integer value to all calling vector elements. |
| └ indexed: function Add(const Value: Integer; const Index: Integer; const Len: Integer): TMtxVecInt; | ||
| 7 | function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt; const src1Index: Integer; const Src2Index: Integer; const Index: Integer; const Len: Integer): TMtxVecInt; | Add coresponding elements in Src2 to Src1. |
Overload 1: function Add(const Src: TMtxVecInt): TMtxVecInt;
Add Src elements to calling vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const Src: TMtxVecInt; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
Add Src elements [SrcIndex..SrcIndex+Len-1] to calling vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | |
| 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
Add Src elements [SrcIndex..SrcIndex+Len-1] to calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.
Overload 2: function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt): TMtxVecInt;
Add coresponding elements in Src2 to Src1.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src1 | TMtxVecInt | |
| 2 | Src2 | TMtxVecInt |
Result: stored in self (calling object), returns self for chaining
Returns: the result of adding Src2 values from coresponding Src1 values.
Overload 3: function Add(const X: TMtxVecInt; const Y: TMtxVecInt; const Z: TMtxVecInt): TMtxVecInt;
Compute X + Y + Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | |
| 2 | Y | TMtxVecInt | |
| 3 | Z | TMtxVecInt |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const X: TMtxVecInt; XIndex: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: TMtxVecInt; zIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Compute X + Y + Z on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | |
| 2 | XIndex | Integer | X start index |
| 3 | Y | TMtxVecInt | |
| 4 | YIndex | Integer | Y start index |
| 5 | Z | TMtxVecInt | |
| 6 | zIndex | Integer | |
| 7 | Index | Integer | start index |
| 8 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 4: function Add(const X: TMtxVecInt; const Y: TMtxVecInt; const Z: Integer): TMtxVecInt;
Compute X + Y + zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | |
| 2 | Y | TMtxVecInt | |
| 3 | Z | Integer |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const X: TMtxVecInt; XIndex: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Compute X + Y + zScalar on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | |
| 2 | XIndex | Integer | X start index |
| 3 | Y | TMtxVecInt | |
| 4 | YIndex | Integer | Y start index |
| 5 | Z | Integer | |
| 6 | Index | Integer | start index |
| 7 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 5: function Add(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt;
Add integer Value to all Src elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | |
| 2 | Value | Integer |
Result: stored in self (calling object), returns self for chaining
Add integer Value to all Src elements and store the results in calling vector. Size of calling vector is adjusted automatically.
Indexed: function Add(const Src: TMtxVecInt; const Value: Integer; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
Add integer Value to Src elements [SrcIndex..SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | |
| 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
Add integer Value to Src elements [SrcIndex..SrcIndex+Len-1] and store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.
Overload 6: function Add(const Value: Integer): TMtxVecInt;
Add integer value to all calling vector elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Integer |
Result: stored in self (calling object), returns self for chaining
Indexed: function Add(const Value: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
Add integer value to calling vector elements [Index..Index+Len-1].
| # | 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 7: function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt; const src1Index: Integer; const Src2Index: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
Add coresponding elements in Src2 to Src1.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src1 | TMtxVecInt | |
| 2 | Src2 | TMtxVecInt | |
| 3 | src1Index | Integer | |
| 4 | Src2Index | Integer | |
| 5 | Index | Integer | start index |
| 6 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Add Src1 elements [Src1Index..Src1Index+Len-1] to corrresponding Src2 elements [Src2Index..Src12ndex+Len] and store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.