VF_rotate | VD_rotate | VE_rotate |
VCF_rotate | VCD_rotate | VCE_rotate |
VPF_rotate | VPD_rotate | VPE_rotate |
VI_rotate | VBI_rotate | VSI_rotate | VLI_rotate | VQI_rotate | |
VU_rotate | VUB_rotate | VUS_rotate | VUL_rotate | VUQ_rotate | VUI_rotate |
|
Function | Rotate the ordering of the elements of a vector |
|
Syntax C/C++ | #include <VFstd.h>
void VF_rotate( fVector Y, fVector X, ui size, int pos ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::rotate( const vector<T>& X, int pos ); |
Pascal/Delphi | uses VFstd;
procedure VF_rotate( Y, X:fVector; size:UIntSize; pos:Integer ); |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_rotate( fVector d_Y, fVector d_X, ui size, int pos );
void VFcu_rotate( fVector h_Y, fVector h_X, ui size, int pos );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_rotate( d_Y, d_X:fVector; size:UIntSize; pos:Integer ): IntBool;
procedure VFcu_rotate( h_Y, h_X:fVector; size:UIntSize; pos:Integer );
|
|
Description | Yi = Xsize-pos+i, i=0,..,pos−1
Yi = Xi-pos, i=pos,..,size−1
The output vector equals the rotated input vector. Clockwise rotation is achieved by a positive number pos. |
|
|
|
|