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

Private helper function forward 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).
p_transposeIf work.color.size() != 0, then p_transpose is not used. Otherwise, it is a sparsity pattern for the transpose of 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 SparseJacobianForward(x, p, row, col, jac, work). In addition, work.color contains information that is computed by SparseJacobainFor. 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 SparseJacobianForward(x, p, row, col, jac, work).

Definition at line 315 of file sparse_jacobian.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines