VCF_accV2 | VCD_accV2 | VCE_accV2 |
VD_accVF2 | VE_accVF2 | VE_accVD2 |
VCD_accVCF2 | VCE_accVCF2 | VCE_accVCD2 |
|
Function | Accumulation 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/Delphi | uses 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/Delphi | uses 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 );
|
|
Description | Yi += 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. |
|
|
|
|