TVecInt.Multiply Method

Overload List

#SignatureDescription
1function Multiply(const Src: TMtxVecInt): TMtxVecInt; overload;Multiply Src elements with calling vector elements.
└ indexed: function Multiply(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;
2function Multiply(const Src1, Src2: TMtxVecInt): TMtxVecInt; overload;Multiplies coresponding elements in Src2 with Src1.
3function Multiply(const Src: TMtxVecInt; Value: integer): TMtxVecInt; overload;Multiply integer Value with all Src elements.
└ indexed: function Multiply(const Src: TMtxVecInt; Value, SrcIndex, Index, Len: integer): TMtxVecInt; overload;
4function Multiply(Value: integer): TMtxVecInt; overload;Multiply integer value with all calling vector elements.
└ indexed: function Multiply(Value,Index, Len: integer): TMtxVecInt; overload;
5function Multiply(const Src1, Src2: TMtxVecInt; SrcIndex1, SrcIndex2,Index, Len: integer): TMtxVecInt; overload;Multiply coresponding elements in Src2 with Src1.

Overload 1: function Multiply(const Src: TMtxVecInt): TMtxVecInt; overload;

Multiply Src elements with calling vector elements.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt

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

Indexed: function Multiply(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;

Mjultiply Src elements [SrcIndex..SrcIndex+Len-1] with 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:

Multiply Src elements [SrcIndex..SrcIndex+Len-1] with calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.

Overload 2: function Multiply(const Src1, Src2: TMtxVecInt): TMtxVecInt; overload;

Multiplies coresponding elements in Src2 with Src1.

#NameTypeDescription
1Src1TMtxVecIntsource TVecInt or TMtxInt
2Src2TMtxVecIntsource TVecInt or TMtxInt

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

Returns: the result of multipliing Src2 values with coresponding Src1 values.

Overload 3: function Multiply(const Src: TMtxVecInt; Value: integer): TMtxVecInt; overload;

Multiply integer Value with all Src elements.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2Valueinteger

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

Remarks:

Multiply integer Value with all Src elements and store the results in calling vector. Size of calling vector is adjusted automatically.

Indexed: function Multiply(const Src: TMtxVecInt; Value, SrcIndex, Index, Len: integer): TMtxVecInt; overload;

Multiply integer value with Src vector 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:

Store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.

Overload 4: function Multiply(Value: integer): TMtxVecInt; overload;

Multiply integer value with all calling vector elements.

#NameTypeDescription
1Valueinteger

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

Indexed: function Multiply(Value,Index, Len: integer): TMtxVecInt; overload;

Multiply integer value with 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 5: function Multiply(const Src1, Src2: TMtxVecInt; SrcIndex1, SrcIndex2,Index, Len: integer): TMtxVecInt; overload;

Multiply coresponding elements in Src2 with 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:

Multiply Src1 elements [Src1Index..Src1Index+Len-1] with corrresponding Src2 elements [Src2Index..Src2ndex+Len] and store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.