VF_sumabs | VD_sumabs | VE_sumabs |
|
Function | Sum up the absolute values of all the elements of a vector. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_sumabs( fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::sumabs(); |
Pascal/Delphi | uses VFstd;
function VF_sumabs( X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_sumabs( float *h_RetVal, fVector d_X, ui size );
int cusdVF_sumabs( float *d_RetVal, fVector d_X, ui size );
float VFcu_sumabs( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_sumabs( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_sumabs( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_sumabs( h_X:fVector; size:UIntSize ): Single;
|
|
Description | sumabs = sum(| Xi |) |
|
Error handling | none (but be careful: this function may easily overflow!) |
|
Return value | sum of the absolute values of all vector elements. |
|
|