VI_fsumVBI_fsumVSI_fsumVLI_fsumVQI_fsum
VU_fsumVUB_fsumVUS_fsumVUL_fsumVUI_fsum
Functionsum of the elements of an integer vector, returned in floating-point
Syntax C/C++#include <VIstd.h>
double VI_fsum( iVector X, ui size );

    (similarly VBI_,   VSI_,   VLI_,   VU_,   VUB_,   VUS_,   VUL_,   VUI_)
extended VQI_fsum( qiVector X, ui size );
C++ VecObj#include <OptiVec.h>
double vector<int>::fsum();
extended vector<quad>::fsum();
Pascal/Delphiuses VIstd;
function VI_fsum( X:iVector; size:UInt ); Double;

    (similarly VBI_,   VSI_,   VLI_,   VU_,   VUB_,   VUS_,   VUL_)
function VQI_fsum( X:qiVector; size:UInt ); Extended;
DescriptionThe elements of X are summed up. In order to avoid possible overflow, the sum is accumulated in a floating-point number. The 8, 16, and 32 bit variants return the result in double precision, whereas the 64 bit variant, VQI_fsum, returns an extended.
Error handlingnone
Return valuethe sum in floating-point format
See alsoVF_sum,   VF_mean

VectorLib Table of Contents  OptiVec home