|
|
| Function | Calculates 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/Delphi | uses VFstd;
function VF_prod( X:fVector; size:UInt ): Single;
procedure VCF_prod( var Prod:fComplex; X:cfVector; size:UInt);
procedure VPF_prod( var Prod:fPolar; X:pfVector; size:UInt); |
|
| Description | The product of all elements of a vector is calculated. |
|
| Error handling | none (but be careful: this function may easily overflow!) |
|
| Return value | the product of the vector elements (except complex versions in Pascal/Delphi) |
|
|