FunctionCalculates the product of all the elements of a vector.
Syntax C/C++#include <VFstd.h>
float VF_prod( fVector X, ui size );
fComplex VCF_prod( cfVector X, ui size );
fPolar VPF_prod( pfVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::prod();
complex<T> vector<complex<T>>::prod();
polar<T> vector<polar<T>>::prod();
Pascal/Delphiuses VFstd;
function VF_prod( X:fVector; size:UIntSize ): Single;
procedure VCF_prod( var Prod:fComplex; X:cfVector; size:UIntSize);
procedure VPF_prod( var Prod:fPolar; X:pfVector; size:UIntSize);
DescriptionThe product of all elements of a vector is calculated.
Error handlingnone (but be careful: this function may easily overflow!)
Return valuethe product of the vector elements (except complex versions in Pascal/Delphi)
See alsoVF_runprod,   VF_sum

VectorLib Table of Contents  OptiVec home