VF_setElement | VD_setElement | VE_setElement |
VCF_setElement | VCD_setElement | VCE_setElement |
VPF_setElement | VPD_setElement | VPE_setElement |
VI_setElement | VBI_setElement | VSI_setElement | VLI_setElement | VQI_setElement | |
VU_setElement | VUB_setElement | VUS_setElement | VUL_setElement | VUQ_setElement | VUI_setElement |
|
Function | Sets 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/Delphi | uses 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/Delphi | uses VFstd;
procedure cudaVF_setElement( d_X:fVector; pos:UIntSize; C:Single );
procedure cusdVF_setElement( d_X:fVector; pos:UIntSize; d_C:PSingle );
|
|
Description | The 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. |
|
|
|
|