FunctionSum 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/Delphiuses 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/Delphiuses 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;
Descriptionsumabs = sum(| Xi |)
Error handlingnone (but be careful: this function may easily overflow!)
Return valuesum of the absolute values of all vector elements.
See alsoVF_sum,   VF_meanabs

VectorLib Table of Contents  OptiVec home