VF_indpick | VD_indpick | VE_indpick |
VCF_indpick | VCD_indpick | VCE_indpick |
VPF_indpick | VPD_indpick | VPE_indpick |
VI_indpick | VBI_indpick | VSI_indpick | VLI_indpick | VQI_indpick | |
VU_indpick | VUB_indpick | VUS_indpick | VUL_indpick | VUQ_indpick | VUI_indpick |
|
Function | Fill 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/Delphi | uses 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/Delphi | uses 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!)
|
|
Description | Yi = 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. |
|
|
|
|