|
|
Syntax C/C++ | #include <VFstd.h>
float VF_ssq( fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::ssq(); |
Pascal/Delphi | uses VFstd;
function VF_ssq( X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_ssq( float *h_RetVal, fVector d_X, ui size );
int cusdVF_ssq( float *d_RetVal, fVector d_X, ui size );
float VFcu_ssq( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_ssq( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_ssq( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_ssq( h_X:fVector; size:UIntSize ): Single;
|
|
Description | ssq = sum( Xi2 ) |
|
Error handling | none (but be careful: this function may lead to an overflow!) |
|
Return value | sum of the squares of the vector elements. |
|
|