VF_rotate_bufVD_rotate_bufVE_rotate_buf
VCF_rotate_bufVCD_rotate_bufVCE_rotate_buf
VPF_rotate_bufVPD_rotate_bufVPE_rotate_buf
VI_rotate_bufVBI_rotate_bufVSI_rotate_bufVLI_rotate_bufVQI_rotate_buf 
VU_rotate_bufVUB_rotate_bufVUS_rotate_bufVUL_rotate_bufVUQ_rotate_bufVUI_rotate_buf
FunctionRotate the ordering of the elements of a vector
Syntax C/C++#include <VFstd.h>
void VF_rotate_buf( fVector Y, fVector X, ui size, int pos, fVector Buf );
C++ VecObj#include <OptiVec.h>
void vector<T>::rotate( const vector<T> X, int pos, const vector<T> Buf );
Pascal/Delphiuses VFstd;
procedure VF_rotate_buf( Y, X:fVector; size:UIntSize; pos:Integer; Buf:fVector );
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_rotate_buf( fVector d_Y, fVector d_X, ui size, int pos, fVector d_Buf );
void VFcu_rotate_buf( fVector h_Y, fVector h_X, ui size, int pos, fVector h_Buf );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_rotate_buf( d_Y, d_X:fVector; size:UIntSize; pos:Integer; d_Buf:fVector ): IntBool;
procedure VFcu_rotate_buf( h_Y, h_X:fVector; size:UIntSize; pos:Integer; h_Buf:fVector );
DescriptionYi = Xsize-pos+i,   i=0,..,pos−1
Yi = Xi-pos,      i=pos,..,size−1
This is a more efficient variant of VF_rotate. Instead of allocating buffer memory each time the function is called, it takes the necessary buffer as the argument Buf. Buf must be a vector generated by the OptiVec memory management function (VF_vector etc.). The size of Buf must be greater or equal to the shift, pos.
Error handlingnone
Return valuenone
See alsoVF_rotate

VectorLib Table of Contents  OptiVec home