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