VF_runsumVD_runsumVE_runsum
VCF_runsumVCD_runsumVCE_runsum
VI_runsumVBI_runsumVSI_runsumVLI_runsumVQI_runsum 
VU_runsumVUB_runsumVUS_runsumVUL_runsumVUQ_runsumVUI_runsum
Function"running" sum, also called "cumulative sum" or "inclusive sum-scan"
Syntax C/C++#include <VFstd.h>
void VF_runsum( fVector Y, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::runsum( const vector<T>& X );
Pascal/Delphiuses VFstd;
procedure VF_runsum( Y, X:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_runsum( fVector d_Y, fVector d_X, ui size );
void VFcu_runsum( fVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_runsum( d_Y, d_X:fVector; size:UIntSize );
procedure VFcu_runsum( h_Y, h_X:fVector; size:UIntSize );
DescriptionEach element of Y is the sum of the corresponding and all preceding elements of X.
Error handlingnone (but be careful: this function may easily overflow!)
Return valuenone
See alsoVF_sum,   VF_runprod

VectorLib Table of Contents  OptiVec home