VF_subCVD_subCVE_subC
VCF_subCVCD_subCVCE_subC
VCF_subReCVCD_subReCVCE_subReC
VI_subCVBI_subCVSI_subCVLI_subCVQI_subC 
VU_subCVUB_subCVUS_subCVUL_subCVUQ_subCVUI_subC
FunctionSubtract a constant from each vector element
Syntax C/C++#include <VFmath.h>
void VF_subC( fVector Y, fVector X, ui size, float C );
void VCF_subC( cfVector Y, cfVector X, ui size, fComplex C );
void VCF_subReC( cfVector Y, cfVector X, ui size, float CRe );
C++ VecObj#include <OptiVec.h>
void vector<T>::subC( const vector<T>& X, const T& C );
void vector<complex<T>>::subC( const vector<complex<T>>& X, complex<T> C );
void vector<complex<T>>::subReC( const vector<complex<T>>& X, const T& CRe );
Pascal/Delphiuses VFmath;
procedure VF_subC( Y, X:fVector; size:UIntSize; C:Single );
procedure VCF_subC( Y, X:cfVector; size:UIntSize; C:fComplex );
procedure VCF_subReC( Y, X:cfVector; size:UIntSize; CRe:Single );
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_subC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_subC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_subC( fVector d_Y, fVector d_X, ui size, float C );
#include <cudaVCFmath.h>
int cudaVCF_subReC( cfVector d_Y, cfVector d_X, ui size, float CRe );
int cusdVCF_subReC( cfVector d_Y, cfVector d_X, ui size, float *d_CRe );
void VCFcu_subReC( cfVector h_Y, cfVector h_X, ui size, float CRe );
CUDA function Pascal/Delphiuses VFmath, VCFmath;
function cudaVF_subC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_subC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VFcu_subC( h_Y, h_X:fVector; size:UIntSize; C:Single );
function cudaVCF_subReC( d_Y, d_X:cfVector; size:UIntSize; CRe:Single );
function cusdVCF_subReC( d_Y, d_X:cfVector; size:UIntSize; d_CRe:PSingle );
procedure VCFcu_subReC( h_Y, h_X:cfVector; size:UIntSize; CRe:Single );
DescriptionYi = Xi - C
The complex floating-point versions exist in two variants, one for complex constants C, the other for real-valued constants CRe subtracted from the complex vector.
Error handlingfloating-point versions: none;
integer versions: see chapter 5.2.
Return valuenone
See alsoVF_subV,   VF_subrC,   VF_addC,   VF_mulC,   VF_divC

VectorLib Table of Contents  OptiVec home