CppAD: A C++ Algorithmic Differentiation Package  20171217
template<typename Base >
template<typename VectorBase >
 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

Template Parameters
 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.
Parameters
 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 , If the argument w has size m , for and ,
Returns
Is a vector such that for and

where the matrix 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.