MatrixInt.Ramp Method

function Ramp(const Offset: Double; const Step: Double; const Index: Integer; const Len: Integer): TMtxInt;

Fills the calling vector elements [Index]..[Index+Len-1].

#NameTypeDescription
1OffsetDouble
2StepDouble
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

Method uses the following rule:

Values[k] := Offset + k*Step.

An exception is raised if calling vector array borders are overrun.