Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLVector UpSample(TOpenCLMtxVec Src, Int32 Factor, Int32 Phase) | Inserts zeroes between consecutive vector values. |
| 2 | TOpenCLMtxVec UpSample(TOpenCLMtxVec Src, Int32 Factor, Int32 SrcIndex, Int32 Index, Int32 Len, Int32 Phase) | Inserts zeroes between consecutive array values. |
Overload 1: TOpenCLVector UpSample(TOpenCLMtxVec Src, Int32 Factor, Int32 Phase)
Inserts zeroes between consecutive vector values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Factor | Int32 | |
| 3 | Phase | Int32 |
Returns: TOpenCLVector
Inserts zeroes between consecutive vector values. The method copies the values from Src to the calling vector and places Factor-1 zeros between consecutive values. The Dew.Math.TOpenCLBase.Length and Dew.Math.TOpenCLBase.Complex properties of the calling vector are set implicitly. Phase parameter defines the initial sample offset and must be less than Factor.
TOpenCLVector a;
TOpenCLVector b;
clMtxVec.CreateIt(a,b);
try
{
b.CopyFromArray(TSingleArray.Create(0,0,1,3,2));
a.UpSample(b,2); // a = new double[] {0,0,0,0,1,0,3,0,2,0}
}
finally
{
clMtxVec.FreeIt(a,b);
}
Overload 2: TOpenCLMtxVec UpSample(TOpenCLMtxVec Src, Int32 Factor, Int32 SrcIndex, Int32 Index, Int32 Len, Int32 Phase)
Inserts zeroes between consecutive array values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Factor | Int32 | |
| 3 | SrcIndex | Int32 | source start index |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
| 6 | Phase | Int32 |
Result: stored in self (calling object), returns self for chaining
Copy Len values from Src starting at SrcIndex to the calling object starting at position Index and place Factor-1 zeros between consecutive values. Size and Dew.Math.TOpenCLBase.Complex properties of the calling object must be set explicitly. Phase parameter defines the initial sample offset and must be less then Factor. An exception is raised, if array borders are overrun/underrun.