TVec::Ramp Method

Overload List

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

Overload 1: TVec *Ramp();

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: TVec::SetVal
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

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

Fills the calling vector with a series.

#NameTypeDescription
1Offsetconst TCplx &
2Stepconst TCplx &
Remarks:

Method follow the rule:

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

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

Fills the calling vector.

#NameTypeDescription
1Offsetconst double
2Stepconst double
Remarks:

Method uses the following rule:

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

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

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1Offsetconst double
2Stepconst double
3Indexint
4Lenint
Remarks:

Method uses the following 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::TVec · Dew.Math/MtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1Offsetconst TCplx &
2Stepconst TCplx &
3Indexint
4Lenint
Remarks:

Following 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::TVec · Dew.Math/MtxVec.h · Cross-compiler

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

The Offset is complex, but the step is real.

#NameTypeDescription
1Offsetconst TCplx &
2Stepconst double
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1Offsetconst TCplx &
2Stepconst double
3Indexint
4Lenint
Remarks:

Following the rule:

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

The Offset is complex, but the step is real.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler