VectorInt.Add Method

Overload List

#SignatureDescription
1function 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;
2function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt): TMtxVecInt;Add coresponding elements in Src2 to Src1.
3function 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;
4function 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;
5function 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;
6function 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;
7function 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.

#NameTypeDescription
1SrcTMtxVecInt

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.

#NameTypeDescription
1SrcTMtxVecInt
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

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.

#NameTypeDescription
1Src1TMtxVecInt
2Src2TMtxVecInt

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

#NameTypeDescription
1XTMtxVecInt
2YTMtxVecInt
3ZTMtxVecInt

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

#NameTypeDescription
1XTMtxVecInt
2XIndexIntegerX start index
3YTMtxVecInt
4YIndexIntegerY start index
5ZTMtxVecInt
6zIndexInteger
7IndexIntegerstart index
8LenIntegerelement 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

#NameTypeDescription
1XTMtxVecInt
2YTMtxVecInt
3ZInteger

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

#NameTypeDescription
1XTMtxVecInt
2XIndexIntegerX start index
3YTMtxVecInt
4YIndexIntegerY start index
5ZInteger
6IndexIntegerstart index
7LenIntegerelement 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.

#NameTypeDescription
1SrcTMtxVecInt
2ValueInteger

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

Remarks:

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].

#NameTypeDescription
1SrcTMtxVecInt
2ValueInteger
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

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.

#NameTypeDescription
1ValueInteger

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].

#NameTypeDescription
1ValueInteger
2IndexIntegerstart index
3LenIntegerelement count

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

Remarks:

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.

#NameTypeDescription
1Src1TMtxVecInt
2Src2TMtxVecInt
3src1IndexInteger
4Src2IndexInteger
5IndexIntegerstart index
6LenIntegerelement count

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

Remarks:

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.