CppAD: A C++ Algorithmic Differentiation Package
20171217
|
|
inline |
Multiple direction forward mode Taylor coefficients for op = CsumOp.
This operation is
z = s + x(1) + ... + x(m) - y(1) - ... - y(n).
Base | base type for the operator; i.e., this operation was recorded using AD<Base> and computations by this routine are done using type Base. |
q | order ot the Taylor coefficients that we are computing. |
r | number of directions for Taylor coefficients that we are computing. |
i_z | variable index corresponding to the result for this operation; i.e. the row index in taylor corresponding to z. |
arg | arg[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 s in this cummunative summation. arg[2+i] for i = 1 , ... , m is the variable index of x(i) . arg[2+arg[0]+i] for i = 1 , ... , n is the variable index of y(i) . |
num_par | is the number of parameters in parameter. |
parameter | is the parameter vector for this operation sequence. |
cap_order | number of colums in the matrix containing all the Taylor coefficients. |
taylor | Input: taylor [ arg[2+i]*((cap_order-1)*r + 1) + 0 ] for i = 1 , ... , m is the 0-th order Taylor coefficient corresponding to x(i) and taylor [ arg[2+i]*((cap_order-1)*r + 1) + (q-1)*r + ell + 1 ] for i = 1 , ... , m , ell = 0 , ... , r-1 is the q-th order Taylor coefficient corresponding to x(i) and direction ell. Input: taylor [ arg[2+m+i]*((cap_order-1)*r + 1) + 0 ] for i = 1 , ... , n is the 0-th order Taylor coefficient corresponding to y(i) and taylor [ arg[2+m+i]*((cap_order-1)*r + 1) + (q-1)*r + ell + 1 ] for i = 1 , ... , n , ell = 0 , ... , r-1 is the q-th order Taylor coefficient corresponding to y(i) and direction ell. Output: taylor [ i_z*((cap_order-1)*r+1) + (q-1)*r + ell + 1 ] is the q-th order Taylor coefficient corresponding to z for direction ell = 0 , ... , r-1 . |
Definition at line 211 of file csum_op.hpp.
Referenced by forward2sweep().