User API for Hessian sparsity patterns using reverse mode.
The C++ source code corresponding to this operation is
- Template Parameters:
-
Base | is the base type for this recording. |
VectorSet | is a simple vector with elements of type bool or std::set<size_t> . |
- Parameters:
-
q | is the value of q in the by the previous call of the form
f.ForSparseJac(q, r, packed)
The value r in this call is a sparsity pattern for the matrix . The type of the element of r for the previous call to ForSparseJac must be the same as the type of the elements of s . |
s | is a vector with size m that specifies the sparsity pattern for the vector , where m is the number of dependent variables corresponding to the operation sequence stored in play. |
- Returns:
- is a vector with size
q*n
. containing a sparsity pattern for the matrix
where
is the function corresponding to the operation sequence and x is any argument value.
Definition at line 526 of file rev_sparse_hes.hpp.