VF_Pelement | VD_Pelement | VE_Pelement |
VCF_Pelement | VCD_Pelement | VCE_Pelement |
VCF_PelementRe | VCD_PelementRe | VCE_PelementRe |
VCF_PelementIm | VCD_PelementIm | VCE_PelementIm |
VPF_Pelement | VPD_Pelement | VPE_Pelement |
VI_Pelement | VBI_Pelement | VSI_Pelement | VLI_Pelement | VQI_Pelement | |
VU_Pelement | VUB_Pelement | VUS_Pelement | VUL_Pelement | VUQ_Pelement | VUI_Pelement |
|
Function | Pointer to a vector element |
|
Syntax C/C++ | #include <VFstd.h>
(float *) VF_Pelement( fVector X, ui pos );
#include <VCFstd.h>
(fComplex *) VCF_Pelement( cfVector X, ui pos );
(float *) VCF_PelementRe( cfVector X, ui pos );
(float *) VCF_PelementIm( cfVector X, ui pos ); |
C++ VecObj | #include <OptiVec.h>
T * vector<T>::Pelement( ui pos );
complex<T> * vector<complex<T>>::Pelement( ui pos );
T * vector<complex<T>>::PelementRe( ui pos );
T * vector<complex<T>>::PelementIm( ui pos ); |
Pascal/Delphi | uses VFstd;
function VF_Pelement( X:fVector; pos:UIntSize ): PSingle;
uses VCFstd;
function VCF_Pelement( X:cfVector; pos:UIntSize ): PfComplex;
function VCF_PelementRe( X:cfVector; pos:UIntSize ): PSingle;
function VCF_PelementIm( X:cfVector; pos:UIntSize ): PSingle; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
(float *) cudaVF_Pelement( fVector d_X, ui pos );
#include <cudaVCFstd.h>
(fComplex *) cudaVCF_Pelement( cfVector d_X, ui pos );
(float *) cudaVCF_PelementRe( cfVector d_X, ui pos );
(float *) cudaVCF_PelementIm( cfVector d_X, ui pos );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_Pelement( d_X:fVector; pos:UIntSize ): PSingle;
uses VCFstd;
function cudaVCF_Pelement( d_X:cfVector; pos:UIntSize ): PfComplex;
function cudaVCF_PelementRe( d_X:cfVector; pos:UIntSize ): PSingle;
function cudaVCF_PelementIm( d_X:cfVector; pos:UIntSize ): PSingle;
|
|
Description | Real versions: returns the pointer X+pos = &( X[pos] ).
complex version VCF_PelementRe: returns pointer to X[pos].Re.
complex version VCF_PelementIm: returns pointer to X[pos].Im.
|
|
|
Return value | C/C++: X+pos
Pascal/Delphi: @( X[pos] ) |
|
|