VF_accV2VD_accV2VE_accV2
VCF_accV2VCD_accV2VCE_accV2
mixed-type versions:
VD_accVF2VE_accVF2VE_accVD2
VCD_accVCF2VCE_accVCF2VCE_accVCD2
FunctionAccumulation of squares
Syntax C/C++#include <VFmath.h>
void VF_accV2( fVector Y, fVector X, ui size );
void VD_accVF2( dVector Y, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::accV2( const vector<T>& X );
void vector<double>::accVF2( const vector<float>& X );
Pascal/Delphiuses VFmath;
procedure VF_accV2( Y, X:fVector; size:UIntSize );
procedure VD_accVF2( Y:dVector; X:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_accV2( fVector d_Y, fVector d_X, ui size );
int cudaVD_accVF2( dVector d_Y, fVector d_X, ui size );
void VFcu_accV2( fVector h_Y, fVector h_X, ui size );
void VDcu_accVF2( dVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFmath, VDmath;
function cudaVF_accV2( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVD_accVF2( d_Y:dVector; d_X:fVector; size:UIntSize ): IntBool;
procedure VFcu_accV2( h_Y, h_X:fVector; size:UIntSize );
procedure VDcu_accVF2( h_Y:dVector; h_X:fVector; size:UIntSize );
DescriptionYi += Xi2
The squares of all elements of X are added to the corresponding elements of Y. Similarly to the family VF_accV, this accumulation can be done either with same-type vectors, or the result vector can have higher accuracy.
Error handlingnone
Return valuenone
See alsoVF_acc2V,   VF_addV,   VF_accV,   VCF_accVmulVconj

VectorLib Table of Contents  OptiVec home