| VI_sum | VBI_sum | VSI_sum | VLI_sum | VQI_sum |
| VU_sum | VUB_sum | VUS_sum | VUL_sum | VUI_sum |
|
| Function | Sum 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/Delphi | uses VFstd;
function VF_sum( X:fVector; size:UInt ): Single;
procedure VCF_sum( var Sum:fComplex; X:cfVector; size:UInt); |
|
| Description | sum = sum( Xi )
The sum over all elements of a vector is calculated. |
|
| Error handling | none (but be careful: this function may easily overflow!) |
|
| Return value | sum of the vector elements (except complex versions in Pascal/Delphi). |
|
|