VF_setElementVD_setElementVE_setElement
VCF_setElementVCD_setElementVCE_setElement
VPF_setElementVPD_setElementVPE_setElement
VI_setElementVBI_setElementVSI_setElementVLI_setElementVQI_setElement 
VU_setElementVUB_setElementVUS_setElementVUL_setElementVUQ_setElementVUI_setElement
FunctionSets a single vector element to a given value
Syntax C/C++#include <VFstd.h>
void VF_setElement( fVector X, ui pos, float C );
C++ VecObj#include <OptiVec.h>
vector<T>::setElement( ui pos, T C );
Pascal/Delphiuses VFstd;
procedure VF_setElement( X:fVector; pos:UIntSize; C:Single );
CUDA function C/C++#include <cudaVFstd.h>
void cudaVF_setElement( fVector d_X, ui pos, float C );
void cusdVF_setElement( fVector d_X, ui pos, float *d_C );
CUDA function Pascal/Delphiuses VFstd;
procedure cudaVF_setElement( d_X:fVector; pos:UIntSize; C:Single );
procedure cusdVF_setElement( d_X:fVector; pos:UIntSize; d_C:PSingle );
DescriptionThe element at the position pos is overwritten with the value C.
This function is needed to set elements of dynamically allocated vectors, for which older versions of Borland C++ had a pointer arithmetics bug, and Pascal/Delphi - unlike C - does not provide an own mechanism at all.
Error handlingnone
Return valuenone
See alsoVF_Pelement,   VF_element,   VF_getElement,   VF_accElement,   VF_decElement

VectorLib Table of Contents  OptiVec home