VectorInt.DivideBy Method

Overload List

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

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

Divide Value with calling vector elements.

#NameTypeDescription
1ValueInteger

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

Remarks:

Teh result is stored in the calling vector.

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

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

#NameTypeDescription
1ValueInteger
2SrcTMtxVecInt

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

Remarks:

An exception is raised if array borders are overrun.

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

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

#NameTypeDescription
1ValueInteger
2SrcTMtxVecInt
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.