TOpenCLVector.Shift Method

TOpenCLVector Shift(TOpenCLMtxVec Vec, Int32 Offset)

Shift vector elements left or right in the array.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2OffsetInt32

Returns: TOpenCLVector

Remarks:

Shifts Vec vector elements and stores the result in the calling object. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

See Also: TOpenCLVector.Rotate

Indexed: TOpenCLMtxVec Shift(TOpenCLMtxVec Vec, Int32 Offset, Int32 VecIndex, Int32 Index, Int32 Len)

A shift on vector elements in range.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2OffsetInt32
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

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

Remarks:

Performs shift on source vector elements in specified range [Index..Index+Len] and stores them to calling vector. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.