VF_indput | VD_indput | VE_indput |
VCF_indput | VCD_indput | VCE_indput |
VPF_indput | VPD_indput | VPE_indput |
VI_indput | VBI_indput | VSI_indput | VLI_indput | VQI_indput | |
VU_indput | VUB_indput | VUS_indput | VUL_indput | VUQ_indput | VUI_indput |
|
Function | Distribute 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/Delphi | uses VFstd;
procedure VF_indput( Y, X:fVector; Ind:uVector; sizex:UIntSize ); |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_indput( fVector d_Y, fVector d_X, uiVector d_Ind, ui sizex );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_indput( d_Y, d_X:fVector; d_Ind:uVector; sizex:UIntSize ): IntBool;
(no VFcu_indput function available - neither for C/C++ nor for Pascal/Delphi!)
|
|
Description | Y[ 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. |
|
|
|
|