VF_prodVD_prodVE_prod
VCF_prodVCD_prodVCE_prod
VPF_prodVPD_prodVPE_prod
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;
function VCF_prod( X:cfVector; size:UIntSize ):fComplex;
function VPF_prod( X:pfVector; size:UIntSize ):fPolar;

Alternative syntax for the complex types (obsolete, but still supported):
procedure VCF_prod( var Prod:fComplex; X:cfVector; size:UIntSize);
procedure VPF_prod( var Prod:fPolar; X:pfVector; size:UIntSize);
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_prod( float *h_RetVal, fVector d_X, ui size );
int cusdVF_prod( float *d_RetVal, fVector d_X, ui size );
float VFcu_prod( fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_prod( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_prod( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_prod( h_X:fVector; size:UIntSize ): Single;
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