clVector::Ramp Method

Overload List

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

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

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

Fills the calling vector with a series.

#NameTypeDescription
1OffsetTCplx
2StepTCplx
Remarks:

Method follow the rule:

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

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

Fills the calling vector.

#NameTypeDescription
1Offsetdouble
2Stepdouble
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::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

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

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

#NameTypeDescription
1Offsetdouble
2Stepdouble
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::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

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

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

#NameTypeDescription
1OffsetTCplx
2StepTCplx
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::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

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

The Offset is complex, but the step is real.

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

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

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

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

Following the rule:

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

The Offset is complex, but the step is real.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler