Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.14 cumsum()

PrototypesHeader File(s)
template <class T>
RWMathVec<T>
cumsum(const RWMathVec<T>&)
<rw/math/mathvec.h>

10.14.1 Description

Takes a vector x and returns a vector y of values corresponding to the cumulative sum of x:

10.14.2 Example Program

10.14.3

Program Output:


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.