TVecInt.Divide Method

Overload List

#SignatureDescription
1function Divide(const Src: TMtxVecInt): TMtxVecInt; overload;Divide calling object elements with Src elements.
└ indexed: function Divide(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;
2function Divide(const Src1, Src2: TMtxVecInt): TMtxVecInt; overload;Divides coresponding elements in Src1 with Src2.
3function Divide(const X, Y, Z: TMtxVecInt): TMtxVecInt; overload;self = X / (Y*Z)
4function Divide(const Src: TMtxVecInt; Value: integer): TMtxVecInt; overload;Divide all Src vector elements with integer Value.
└ indexed: function Divide(const Src: TMtxVecInt; Value, SrcIndex, Index, Len: integer): TMtxVecInt; overload;
5function Divide(Value: integer): TMtxVecInt; overload;Divide all calling vector elements with integer value.
└ indexed: function Divide(Value, Index, Len: integer): TMtxVecInt; overload;
6function Divide(const X: integer; const Y, Z: TMtxVecInt): TMtxVecInt; overload;self = xScalar / (Y*Z)
7function Divide(const Src1, Src2: TMtxVecInt; SrcIndex1, SrcIndex2, Index, Len: integer): TMtxVecInt; overload;Divide coresponding elements in Src1 with Src2.
8function Divide(const X: TMtxVecInt; xIndex: integer; const Y: TMtxVecInt; yIndex: integer; const Z: TMtxVecInt; zIndex: integer; Index, Len: integer): TMtxVecInt; overload;self = X/( Y*Z )
9function Divide(const X: integer; const Y: TMtxVecInt; yIndex: integer; const Z: TMtxVecInt; zIndex: integer; Index, Len: integer): TMtxVecInt; overload;self = xScalar / (Y*Z)

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

Divide calling object elements with Src elements.

#NameTypeDescription
1SrcTMtxVecIntsource 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].

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2SrcIndexintegersource start index
3Indexintegerstart index
4Lenintegerelement count

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

Remarks:

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.

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

#NameTypeDescription
1XTMtxVecIntsource TVecInt or TMtxInt
2YTMtxVecIntsource TVecInt or TMtxInt
3ZTMtxVecIntsource TVecInt or TMtxInt

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

Remarks:

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.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2Valueinteger

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

Remarks:

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.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2Valueinteger
3SrcIndexintegersource start index
4Indexintegerstart index
5Lenintegerelement count

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

Remarks:

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.

#NameTypeDescription
1Valueinteger

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.

#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 6: function Divide(const X: integer; const Y, Z: TMtxVecInt): TMtxVecInt; overload;

Compute xScalar / (Y*Z)

#NameTypeDescription
1Xinteger
2YTMtxVecIntsource TVecInt or TMtxInt
3ZTMtxVecIntsource 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.

#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:

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

#NameTypeDescription
1XTMtxVecIntsource TVecInt or TMtxInt
2xIndexinteger
3YTMtxVecIntsource TVecInt or TMtxInt
4yIndexinteger
5ZTMtxVecIntsource TVecInt or TMtxInt
6zIndexinteger
7Indexintegerstart index
8Lenintegerelement 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

#NameTypeDescription
1Xinteger
2YTMtxVecIntsource TVecInt or TMtxInt
3yIndexinteger
4ZTMtxVecIntsource TVecInt or TMtxInt
5zIndexinteger
6Indexintegerstart index
7Lenintegerelement count

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