VF_indpickVD_indpickVE_indpick
VCF_indpickVCD_indpickVCE_indpick
VPF_indpickVPD_indpickVPE_indpick
VI_indpickVBI_indpickVSI_indpickVLI_indpickVQI_indpick
VU_indpickVUB_indpickVUS_indpickVUL_indpickVUI_indpick
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 );
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