| x | See SparseJacobianForward(x, p, row, col, jac, work). |
| p | If 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. |
| jac | See SparseJacobianForward(x, p, row, col, jac, work). |
| work | See 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. |