|
CppAD: A C++ Algorithmic Differentiation Package
20171217
|
| VectorBase CppAD::ADFun< Base >::Reverse | ( | size_t | q, |
| const VectorBase & | w | ||
| ) |
reverse mode sweep
Use reverse mode to compute derivative of forward mode Taylor coefficients.
The function
is defined by
The function
is defined by
The function
is defined by
| Base | base type for the operator; i.e., this operation sequence was recorded using AD< Base > and computations by this routine are done using type Base. |
| VectorBase | is a Simple Vector class with elements of type Base. |
| q | is the number of the number of Taylor coefficients that are being differentiated (per variable). |
| w | is the weighting for each of the Taylor coefficients corresponding to dependent variables. If the argument w has size m * q , for and ,
m , for and ,
|
such that for
and
is the value for
that corresponding to the forward mode Taylor coefficients for the independent variables as specified by previous calls to Forward. Definition at line 91 of file reverse.hpp.
Referenced by CppAD::BenderQuad(), CppAD::ipopt::solve_callback< Dvector, ADvector, FG_eval >::eval_grad_f(), CppAD::ipopt::solve_callback< Dvector, ADvector, FG_eval >::eval_jac_g(), and CppAD::JacobianRev().