CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
void CppAD::local::reverse_csum_op ( size_t  d,
size_t  i_z,
const addr_t *  arg,
size_t  nc_partial,
Base *  partial 
)
inline

Compute reverse mode Taylor coefficients for result of op = CsumOp.

This operation is

     z = q + x(1) + ... + x(m) - y(1) - ... - y(n).
     H(y, x, w, ...) = G[ z(x, y), y, x, w, ... ]
Template Parameters
Basebase type for the operator; i.e., this operation was recorded using AD< Base > and computations by this routine are done using type Base.
Parameters
dorder the highest order Taylor coefficient that we are computing the partial derivatives with respect to.
i_zvariable index corresponding to the result for this operation; i.e. the row index in taylor corresponding to z.
argarg[0] is the number of addition variables in this cummulative summation; i.e., m.
arg[1] is the number of subtraction variables in this cummulative summation; i.e., m.
parameter[ arg[2] ] is the parameter value q in this cummunative summation.
arg[2+i] for i = 1 , ... , m is the value x(i).
arg[2+arg[0]+i] for i = 1 , ... , n is the value y(i).
nc_partialnumber of colums in the matrix containing all the partial derivatives.
partialInput: partial [ arg[2+i] * nc_partial + k ] for i = 1 , ... , m and k = 0 , ... , d is the partial derivative of G(z, y, x, w, ...) with respect to the k-th order Taylor coefficient corresponding to x(i)
Input: partial [ arg[2+m+i] * nc_partial + k ] for i = 1 , ... , n and k = 0 , ... , d is the partial derivative of G(z, y, x, w, ...) with respect to the k-th order Taylor coefficient corresponding to y(i)
Input: partial [ i_z * nc_partial + k ] for i = 1 , ... , n and k = 0 , ... , d is the partial derivative of G(z, y, x, w, ...) with respect to the k-th order Taylor coefficient corresponding to z.
Output: partial [ arg[2+i] * nc_partial + k ] for i = 1 , ... , m and k = 0 , ... , d is the partial derivative of H(y, x, w, ...) with respect to the k-th order Taylor coefficient corresponding to x(i)
Output: partial [ arg[2+m+i] * nc_partial + k ] for i = 1 , ... , n and k = 0 , ... , d is the partial derivative of H(y, x, w, ...) with respect to the k-th order Taylor coefficient corresponding to y(i)

Definition at line 332 of file csum_op.hpp.

Referenced by reverse_sweep().