| x | [in] is a vector specifing the point at which to compute the Jacobian. |
| p_transpose | [in] If 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. |
| row | [in] is the vector of row indices for the returned Jacobian values. |
| col | [in] is the vector of columns indices for the returned Jacobian values. It must have the same size as row. |
| jac | [out] is the vector of Jacobian values. We use K to denote the size of jac. The return value jac[k] is the partial of the row[k] range component of the function with respect the the col[k] domain component of its argument. |
| work | work.color_method is an input. The rest of this structure contains information that is computed by SparseJacobainFor. If the sparsity pattern, row vector, or col vectors are not the same between calls to SparseJacobianFor, work.clear() must be called to reinitialize work. |