Function"running" product
Syntax C/C++#include <VFstd.h>
void VF_runprod( fVector Y, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::runprod( const vector<T>& X );
Pascal/Delphiuses VFstd;
procedure VF_runprod( Y, X:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_runprod( fVector d_Y, fVector d_X, ui size );
void VFcu_runprod( fVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_runprod( d_Y, d_X:fVector; size:UIntSize );
procedure VFcu_runprod( h_Y, h_X:fVector; size:UIntSize );
DescriptionEach element of Y is the product of the corresponding and all preceding elements of X. This function should be used with care: overflow is easily reached, and underflow may lead to all elements from a certain position on being zero.
Error handlingnone
Return valuenone
See alsoVF_prod,   VF_runsum

VectorLib Table of Contents  OptiVec home