x | a vector of length n, the number of independent variables in f (this ADFun object). |
w | a vector of length m, the number of dependent variables in f (this ADFun object). |
subset | specifices the subset of the sparsity pattern where the Hessian is evaluated. subset.nr() == n, subset.nc() == n. |
pattern | is a sparsity pattern for the Hessian of w^T * f; pattern.nr() == n, pattern.nc() == n, where m is number of dependent variables in f. |
coloring | determines which coloring algorithm is used. This must be cppad.symmetric, cppad.general, colpack.symmetic, or colpack.star. |
work | this structure must be empty, or contain the information stored by a previous call to sparse_hes. The previous call must be for the same ADFun object f and the same subset. |