Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.15 delta()

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

10.15.1 Description

Takes a vector x as an argument and returns a vector y of element differences. The first element in y is set equal to the first element of x. An element y(i) where i is not 0 is set equal to x(i)-x(i-1).

For example, if x = [2, 4, 5, 8] then y = [2, 2, 1, 3].


Previous fileTop of DocumentContentsIndexNext file

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