TOpenCLVector::Ramp Method

Overload List

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

Overload 1: TOpenCLVector *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: TOpenCLBase::SetVal
Declared in Dew::Math::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 3: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 4: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 5: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 6: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler

Overload 7: TOpenCLVector *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::TOpenCLVector · Dew.Math/clMtxVec.h · Cross-compiler