TOpenCLMatrix.UpSample Method

TOpenCLMtxVec UpSample(TOpenCLMtxVec Src, Int32 Factor, Int32 SrcIndex, Int32 Index, Int32 Len, Int32 Phase)

Inserts zeroes between consecutive array values.

#NameTypeDescription
1SrcTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2FactorInt32
3SrcIndexInt32source start index
4IndexInt32start index
5LenInt32element count
6PhaseInt32

Result: stored in self (calling object), returns self for chaining

Remarks:

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.