FunctionDistribute the elements of one vector to the places within another vector specified by their indices.
Syntax C/C++#include <VFstd.h>
void VF_indput( fVector Y, fVector X, uiVector Ind, ui sizex );
C++ VecObj#include <OptiVec.h>
void vector<T>::indput( const vector<T>& X, const vector<ui>& Ind );
Pascal/Delphiuses VFstd;
procedure VF_indput( Y, X:fVector; Ind:uVector; sizex:UIntSize );
DescriptionY[ Indi ] = Xi,   i=0,..sizex-1
The sizex elements of X are put into the places of Y according to the indices specified in Ind. The parameter sizex refers to X and Ind. The size of Y is unimportant, as long as the elements specified in Ind exist.
Error handlingnone
Return valuenone
See alsoVF_indpick,   VF_subvector,   VF_sortind

VectorLib Table of Contents  OptiVec home