TMtxSmallInt.Add Method

Overload List

#SignatureDescription
1function Add(const Src: TMtxVecInt): TMtxVecInt;Add Src elements to calling vector elements.
└ indexed: function Add(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; 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; Value: Integer): TMtxVecInt;Add integer Value to all Src elements.
└ indexed: function Add(const Src: TMtxVecInt; Value: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
6function Add(Value: Integer): TMtxVecInt;Add integer value to all calling vector elements.
└ indexed: function Add(Value: Integer; Index: Integer; Len: Integer): TMtxVecInt;
7function Add(const Src1: TMtxVecInt; const Src2: TMtxVecInt; SrcIndex1: Integer; SrcIndex2: Integer; Index: Integer; 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
1SrcTMtxVecIntsource TVecInt or TMtxInt

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

Indexed: function Add(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Add Src elements [SrcIndex..SrcIndex+Len-1] to calling vector elements.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
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
1Src1TMtxVecIntsource TVecInt or TMtxInt
2Src2TMtxVecIntsource TVecInt or TMtxInt

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
1XTMtxVecIntsource TVecInt or TMtxInt
2YTMtxVecIntsource TVecInt or TMtxInt
3ZTMtxVecIntsource TVecInt or TMtxInt

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
1XTMtxVecIntsource TVecInt or TMtxInt
2XIndexIntegerX start index
3YTMtxVecIntsource TVecInt or TMtxInt
4YIndexIntegerY start index
5ZTMtxVecIntsource TVecInt or TMtxInt
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
1XTMtxVecIntsource TVecInt or TMtxInt
2YTMtxVecIntsource TVecInt or TMtxInt
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
1XTMtxVecIntsource TVecInt or TMtxInt
2XIndexIntegerX start index
3YTMtxVecIntsource TVecInt or TMtxInt
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; Value: Integer): TMtxVecInt;

Add integer Value to all Src elements.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
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; Value: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Add integer Value to Src elements [SrcIndex..SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
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(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(Value: Integer; Index: Integer; 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; SrcIndex1: Integer; SrcIndex2: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Add coresponding elements in Src2 to Src1.

#NameTypeDescription
1Src1TMtxVecIntsource TVecInt or TMtxInt
2Src2TMtxVecIntsource TVecInt or TMtxInt
3SrcIndex1Integer
4SrcIndex2Integer
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.