CppAD: A C++ Algorithmic Differentiation Package  20130102
template<class Base >
template<class VectorBase , class VectorSet >
size_t ADFun< Base >::SparseJacobianRev ( const VectorBase &  x,
VectorSet &  p,
VectorBase &  jac,
sparse_jacobian_work work 
) [private]

Private helper function for reverse mode cases.

Template Parameters:
BaseSee SparseJacobianForward(x, p, row, col, jac, work).
VectorBaseSee SparseJacobianForward(x, p, row, col, jac, work).
VectorSetis either sparse_pack, sparse_set or sparse_list.
Parameters:
xSee SparseJacobianForward(x, p, row, col, jac, work).
pIf work.color.size() != 0, then p is not used. Otherwise, it is a sparsity pattern for the Jacobian of this ADFun<Base> object. Note that we do not change the values in p_transpose, but is not const because we use its iterator facility.
jacSee SparseJacobianForward(x, p, row, col, jac, work).
workSee SparseJacobianReverse(x, p, row, col, jac, work). In addition, work.color contains information that is computed by SparseJacobainRev. If the sparsity pattern, row vector, and col vectors are not the same between calls, work.clear() must be called to reinitialize work.color.
Returns:
See SparseJacobianReverse(x, p, row, col, jac, work).

Definition at line 541 of file sparse_jacobian.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines