MatrixInt.Divide Method

Overload List

#SignatureDescription
1function Divide(const Src: TMtxVecInt): TMtxVecInt;Divide calling object elements with Src elements.
└ indexed: function Divide(const Src: TMtxVecInt; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
2function Divide(const Num: TMtxVecInt; const Den: TMtxVecInt): TMtxVecInt;Divides coresponding elements in Num with Den.
3function Divide(const X: TMtxVecInt; const Y: TMtxVecInt; const Z: TMtxVecInt): TMtxVecInt;self = X / (Y*Z)
└ indexed: function Divide(const X: TMtxVecInt; XIndex: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: TMtxVecInt; zIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
4function Divide(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt;Divide all Src vector elements with integer Value.
└ indexed: function Divide(const Src: TMtxVecInt; const Value: Integer; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
5function Divide(const Value: Integer): TMtxVecInt;Divide all calling vector elements with integer value.
└ indexed: function Divide(const Value: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
6function Divide(const X: Integer; const Y: TMtxVecInt; const Z: TMtxVecInt): TMtxVecInt;self = xScalar / (Y*Z)
└ indexed: function Divide(const X: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: TMtxVecInt; zIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
7function Divide(const Num: TMtxVecInt; const Den: TMtxVecInt; const NumIndex: Integer; const DenIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;Divide coresponding elements in Num with Den.

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

Divide calling object elements with Src elements.

#NameTypeDescription
1SrcTMtxVecInt

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

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

Divide calling object elements with Src elements [SrcIndex..SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxVecInt
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 ] with Src elements [SrcIndex..SrcIndex+Len-1]. An exception is raised if array borders are overrun.

Overload 2: function Divide(const Num: TMtxVecInt; const Den: TMtxVecInt): TMtxVecInt;

Divides coresponding elements in Num with Den.

#NameTypeDescription
1NumTMtxVecInt
2DenTMtxVecInt

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

Returns: the result of dividing Num values with coresponding Den values.

Overload 3: function Divide(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

Remarks:

The following expression would also run at the same or higher speed, when passing Y also for the Z parameter:

X / (Y^2)

Indexed: function Divide(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 array

#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 Divide(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt;

Divide all Src vector elements with integer Value.

#NameTypeDescription
1SrcTMtxVecInt
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; const Value: Integer; const SrcIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Divide Src vector elements [SrcIndex..SrcIndex+Len-1] with integer Value.

#NameTypeDescription
1SrcTMtxVecInt
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(const Value: Integer): TMtxVecInt;

Divide all calling vector elements with integer value.

#NameTypeDescription
1ValueInteger

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

Indexed: function Divide(const Value: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

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: TMtxVecInt; const Z: TMtxVecInt): TMtxVecInt;

Compute xScalar / (Y*Z)

#NameTypeDescription
1XInteger
2YTMtxVecInt
3ZTMtxVecInt

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

Indexed: function Divide(const X: Integer; const Y: TMtxVecInt; YIndex: Integer; const Z: TMtxVecInt; zIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Compute xScalar / (Y*Z) on sub array

#NameTypeDescription
1XInteger
2YTMtxVecInt
3YIndexIntegerY start index
4ZTMtxVecInt
5zIndexInteger
6IndexIntegerstart index
7LenIntegerelement count

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

Overload 7: function Divide(const Num: TMtxVecInt; const Den: TMtxVecInt; const NumIndex: Integer; const DenIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Divide coresponding elements in Num with Den.

#NameTypeDescription
1NumTMtxVecInt
2DenTMtxVecInt
3NumIndexInteger
4DenIndexInteger
5IndexIntegerstart index
6LenIntegerelement count

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

Remarks:

Divide Num elements [NumIndex..NumIndex+Len-1] with corrresponding Deb elements [DenIndex..DenIndex+Len-1] and store the results in calling vector elements [Index..Index+Len-1]. An exception is raised if array borders are overrun.