VF_sumVD_sumVE_sum
VCF_sumVCD_sumVCE_sum
VI_sumVBI_sumVSI_sumVLI_sumVQI_sum
VU_sumVUB_sumVUS_sumVUL_sumVUI_sum
FunctionSum up all the elements of a vector.
Syntax C/C++#include <VFstd.h>
float VF_sum( fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::sum();
Pascal/Delphiuses VFstd;
function VF_sum( X:fVector; size:UIntSize ): Single;
procedure VCF_sum( var Sum:fComplex; X:cfVector; size:UIntSize);
Descriptionsum = sum( Xi )
The sum over all elements of a vector is calculated.
Error handlingnone (but be careful: this function may easily overflow!)
Return valuesum of the vector elements (except complex versions in Pascal/Delphi).
See alsoVF_runsum,   VI_fsum,   VF_prod,   VF_ssq,   VF_ssqdevC,   VF_mean

VectorLib Table of Contents  OptiVec home