Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Ramp: TOpenCLVector; | Fills the calling vector with a series following linear rule. |
| 2 | function Ramp(const Offset: TCplx; const Step: TCplx): TOpenCLVector; | Fills the calling vector with a series. |
| └ indexed: function Ramp(const Offset: TCplx; const Step: TCplx; Index: Integer; Len: Integer): TOpenCLVector; | ||
| 3 | function Ramp(const Offset: TCplx; const Step: Double): TOpenCLVector; | The Offset is complex, but the step is real. |
| └ indexed: function Ramp(const Offset: TCplx; const Step: Double; Index: Integer; Len: Integer): TOpenCLVector; | ||
| 4 | function Ramp(const Offset: Double; const Step: Double): TOpenCLVector; | Fills the calling vector. |
| └ indexed: function Ramp(const Offset: Double; const Step: Double; Index: Integer; Len: Integer): TOpenCLVector; |
Overload 1: function Ramp: TOpenCLVector;
Fills the calling vector with a series following linear rule.
Returns: TOpenCLVector
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.
var a: TOpenCLVector;
begin
clMtxVec.CreateIt(a);
try
a.Size(5,True);
a.Ramp(0,PI);
a.Sin;
finally
clMtxVec.FreeIt(a);
end;
end;
clMtxVec.CreateIt(a);
try
a.Size(5,True);
for i:= 0 to a.Length-1 do a[i] := sin(i * PI);
finally
clMtxVec.FreeIt(a);
end;
Overload 2: function Ramp(const Offset: TCplx; const Step: TCplx): TOpenCLVector;
Fills the calling vector with a series.
Returns: TOpenCLVector
Method follow the rule:
CValues[k] := Offset + k*Step.
Values[k] := k
Indexed: function Ramp(const Offset: TCplx; const Step: TCplx; Index: Integer; Len: Integer): TOpenCLVector;
Fills the calling vector elements [Index]..[Index+Len-1].
Returns: TOpenCLVector
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.
Overload 3: function Ramp(const Offset: TCplx; const Step: Double): TOpenCLVector;
The Offset is complex, but the step is real.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | TCplx | |
| 2 | Step | Double |
Returns: TOpenCLVector
Indexed: function Ramp(const Offset: TCplx; const Step: Double; Index: Integer; Len: Integer): TOpenCLVector;
Fills the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | TCplx | |
| 2 | Step | Double | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Returns: TOpenCLVector
Following the rule:
Values[k] := Offset + k*Step.
The Offset is complex, but the step is real.
Overload 4: function Ramp(const Offset: Double; const Step: Double): TOpenCLVector;
Fills the calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Double | |
| 2 | Step | Double |
Returns: TOpenCLVector
Method uses the following rule:
Values[k] := Offset + k*Step.
If the calling vector is complex, only the real part is set.
CValues[k] := Offset + k*Step.
Indexed: function Ramp(const Offset: Double; const Step: Double; Index: Integer; Len: Integer): TOpenCLVector;
Fills the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Double | |
| 2 | Step | Double | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Returns: TOpenCLVector
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.
Values[k] := Offset + k*Step.