FunctionFill a vector with elements "picked" from another one according to their indices.
Syntax C/C++#include <VFstd.h>
void VF_indpick( fVector Y, uiVector Ind, ui size, fVector X );
C++ VecObj#include <OptiVec.h>
void vector<T>::indpick( const vector<ui>& Ind, const vector<T>& X );
Pascal/Delphiuses VFstd;
procedure VF_indpick( Y:fVector; Ind:uVector; size:UIntSize; X:fVector );
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_indpick( fVector d_Y, uiVector d_Ind, ui size, fVector d_X );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_indpick( d_Y:fVector; d_Ind:uVector; size:UIntSize; d_X:fVector ): IntBool;

   (no VFcu_indpick function available - neither for C/C++ nor for Pascal/Delphi!)
DescriptionYi = X[ Indi ],   i=0,..size−1
The vector Y is filled with size elements taken from X according to their indices specified in Ind. The parameter size refers to Y and Ind. The size of X is unimportant, as long as the elements specified in Ind exist.
Error handlingnone
Return valuenone
See alsoVF_indput,   VF_subvector,   VF_sortind

VectorLib Table of Contents  OptiVec home