Prev Next ForAddOp

Forward Mode Addition Operators

Syntax
inline void ForAddvvOp(size_t d,
     
Base *z, const Base *x, const Base *y)
inline void ForAddpvOp(size_t d,
     
Base *z, const Base *p, const Base *x)
inline void ForAddvpOp(size_t d,
     
Base *z, const Base *x, const Base *p)

Description
Computes the d order Taylor coefficient for  Z where
Operation Value
Addvv  Z = X + Y
Addpv  Z = P + Y
Addvp  Z = X + P

x
The vector x has length  d+1 and contains the d-th order Taylor coefficient row vector for X.

y
The vector y has length  d+1 and contains the d-th order Taylor coefficient row vector for Y.

p
The scalar *p contains the value of the parameter P.

z
The vector z has length  d+1 . On input it contains the d-1-th order Taylor coefficient row vector for Z. On output it contains the d-th order Taylor coefficient row vector for Z; i.e., z[d] is set equal to the d-th Taylor coefficient for the function Z.
Input File: cppad/local/add_op.hpp