TAbstractMtxVecInt.DivideBy Method

Overload List

#SignatureDescription
1function DivideBy(Value: Integer): TMtxVecInt;Divide Value with calling vector elements.
└ indexed: function DivideBy(Value: Integer; Index: Integer; Len: Integer): TMtxVecInt;
2function DivideBy(Value: Integer; const Src: TMtxVecInt): TMtxVecInt;Divide Value with Src vector elements and place result in the calling vector.
└ indexed: function DivideBy(Value: Integer; const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Overload 1: function DivideBy(Value: Integer): TMtxVecInt;

Divide Value with calling vector elements.

#NameTypeDescription
1ValueInteger

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

Indexed: function DivideBy(Value: Integer; Index: Integer; Len: Integer): TMtxVecInt;

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

Divide Value with Src vector elements and place result in the calling vector.

#NameTypeDescription
1ValueInteger
2SrcTMtxVecIntsource TVecInt or TMtxInt

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

Remarks:

Size of the calling vector is adjusted automatically.

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

Divide Value with Src vector elements [SrcIndex..SrcIndex+Len-1] and place the result in the calling vector elements [Index..Index+Len-1].

#NameTypeDescription
1ValueInteger
2SrcTMtxVecIntsource TVecInt or TMtxInt
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

An exception is raised if array borders are overrun.