VF_rotateVD_rotateVE_rotate
VCF_rotateVCD_rotateVCE_rotate
VPF_rotateVPD_rotateVPE_rotate
VI_rotateVBI_rotateVSI_rotateVLI_rotateVQI_rotate 
VU_rotateVUB_rotateVUS_rotateVUL_rotateVUQ_rotateVUI_rotate
FunctionRotate 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/Delphiuses 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/Delphiuses 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 );
DescriptionYi = 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.
Error handlingnone
Return valuenone
See alsoVF_reflect,   VF_rev

VectorLib Table of Contents  OptiVec home