VectorInt::Ramp Method

Overload List

#SignatureDescription
1TVecInt *Ramp() const;Fills the calling vector with a series following linear rule.
2TVecInt *Ramp(const double Offset, const double Step) const;Fills the calling vector.
3TVecInt *Ramp(const double Offset, const double Step, const int Index, const int Len) const;Fills the calling vector elements [Index]..[Index+Len-1].

Overload 1: TVecInt *Ramp() const;

Fills the calling vector with a series following linear rule.

Remarks:

Fills the calling vector with a series following the rule:

Values[k] :=  k

(Offset is zero and Step is one).

See Also: VectorInt::SetVal
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TVecInt *Ramp(const double Offset, const double Step) const;

Fills the calling vector.

#NameTypeDescription
1Offsetconst double
2Stepconst double
Remarks:

Method uses the following rule:

Values[k] := Offset + k*Step.
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TVecInt *Ramp(const double Offset, const double Step, const int Index, const int Len) const;

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

#NameTypeDescription
1Offsetconst double
2Stepconst double
3Indexconst int
4Lenconst int
Remarks:

Method uses the following rule:

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

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

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler