VCF_addReC | VCD_addReC | VCE_addReC |
VI_addC | VBI_addC | VSI_addC | VLI_addC | VQI_addC | |
VU_addC | VUB_addC | VUS_addC | VUL_addC | VUQ_addC | VUI_addC |
|
Funktion | Konstante zu allen Vektor-Elementen addieren |
|
Syntax C/C++ | #include <VFmath.h>
void VF_addC( fVector Y, fVector X, ui size, float C);
(analog VD_, VI_, etc.)
void VCF_addC( cfVector Y, cfVector X, ui size, fComplex C );
void VCF_addReC( cfVector Y, cfVector X, ui size, float CRe );
(analog VCD_, VCE_) |
C++ VecObj | #include <OptiVec.h>
void vector<T>::addC( const vector<T>& X, const T& C); );
void vector<complex<T>>::addC( const vector<complex<T>>& X, complex<T> C );
void vector<complex<T>>::addReC( const vector<complex<T>>& X, const T& CRe ); |
Pascal/Delphi | uses VFmath;
procedure VF_addC( Y, X:fVector; size:UIntSize; C:Single );
(analog VD_, VI_, etc.)
procedure VCF_addC( Y, X:cfVector; size:UIntSize; C:fComplex );
procedure VCF_addReC( Y, X:cfVector; size:UIntSize; CRe:Single );
(analog VCD_, VCE_) |
|
CUDA-Funktion C/C++ | #include <cudaVFmath.h>
int cudaVF_addC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_addC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_addC( fVector d_Y, fVector d_X, ui size, float C );
#include <cudaVCFmath.h>
int cudaVCF_addReC( cfVector d_Y, cfVector d_X, ui size, float CRe );
int cusdVCF_addReC( cfVector d_Y, cfVector d_X, ui size, float *d_CRe );
void VCFcu_addReC( cfVector h_Y, cfVector h_X, ui size, float CRe );
|
CUDA-Funktion Pascal/Delphi | uses VFmath, VCFmath;
function cudaVF_addC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_addC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VFcu_addC( h_Y, h_X:fVector; size:UIntSize; C:Single );
function cudaVCF_addReC( d_Y, d_X:cfVector; size:UIntSize; CRe:Single );
function cusdVCF_addReC( d_Y, d_X:cfVector; size:UIntSize; d_CRe:PSingle );
procedure VCFcu_addReC( h_Y, h_X:cfVector; size:UIntSize; CRe:Single );
|
|
Beschreibung | Yi = Xi + C
Die komplexen Versionen existieren in zwei Varianten: eine für komplexe Konstanten C, die andere für reelle Konstanten CRe. |
|
Fehlerbehandlung | Fließkomma-Versionen: keine;
Ganzzahl-Versionen: siehe Kap. 5.2. |
|
|
|