TVecInt.DivideBy Method

Overload List

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

Overload 1: function DivideBy(Value: integer): TMtxVecInt; overload;

Divide Value with calling vector elements.

#NameTypeDescription
1Valueinteger

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

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

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; overload;

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, Index, Len: integer): TMtxVecInt; overload;

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.