Vector::Ramp Method

Overload List

#SignatureDescription
1TVec *Ramp() const;Fills the calling vector with a series following linear rule.
2TVec *Ramp(TCplx Offset, TCplx Step) const;Fills the calling vector with a series.
3TVec *Ramp(double Offset, double Step) const;Fills the calling vector with a series.
4TVec *Ramp(double Offset, double Step, int Index, int Len) const;Fills the calling vector elements [Index]..[Index+Len-1] with a series.
5TVec *Ramp(TCplx Offset, TCplx Step, int Index, int Len) const;Fills the calling vector elements [Index]..[Index+Len-1] with a series.
6TVec *Ramp(TCplx Offset, double Step) const;The Offset is complex, but the step is real.
7TVec *Ramp(TCplx Offset, double Step, int Index, int Len) const;Fills the calling vector elements [Index]..[Index+Len-1] with a series.

Overload 1: TVec *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). If the calling vector is complex, only the real part is set.

See Also: Vector::SetVal
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TVec *Ramp(TCplx Offset, TCplx Step) const;

Fills the calling vector with a series.

#NameTypeDescription
1OffsetTCplx
2StepTCplx
Remarks:

Follow the rule:

CValues[k] := Offset + k*Step.
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TVec *Ramp(double Offset, double Step) const;

Fills the calling vector with a series.

#NameTypeDescription
1Offsetdouble
2Stepdouble
Remarks:

Follow the rule:

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

If the calling vector is complex, only the real part is set.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TVec *Ramp(double Offset, double Step, int Index, int Len) const;

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

#NameTypeDescription
1Offsetdouble
2Stepdouble
3Indexint
4Lenint
Remarks:

Follow the rule:

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

If the calling vector is complex, only the real part is set. An exception is raised if calling vector array borders are overrun.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: TVec *Ramp(TCplx Offset, TCplx Step, int Index, int Len) const;

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

#NameTypeDescription
1OffsetTCplx
2StepTCplx
3Indexint
4Lenint
Remarks:

Follow the rule:

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

If the calling vector is complex, only the real part is set. An exception is raised if array borders of the calling vector are overrun.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 6: TVec *Ramp(TCplx Offset, double Step) const;

The Offset is complex, but the step is real.

#NameTypeDescription
1OffsetTCplx
2Stepdouble
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: TVec *Ramp(TCplx Offset, double Step, int Index, int Len) const;

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

#NameTypeDescription
1OffsetTCplx
2Stepdouble
3Indexint
4Lenint
Remarks:

Follow the rule:

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

The Offset is complex, but the step is real.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler