CppAD: A C++ Algorithmic Differentiation Package
20171217
|
VectorSet CppAD::ADFun< Base >::ForSparseHes | ( | const VectorSet & | r, |
const VectorSet & | s | ||
) |
User API for Hessian sparsity patterns using reverse mode.
The C++ source code corresponding to this operation is
h = f.ForSparseHes(q, r)
Base | is the base type for this recording. |
VectorSet | is a simple vector with elements of type bool or std::set<size_t> . |
r | is a vector with size n that specifies the sparsity pattern for the diagonal of the matrix ![]() n is the number of independent variables corresponding to the operation sequence stored in play. |
s | is a vector with size m that specifies the sparsity pattern for the vector ![]() m is the number of dependent variables corresponding to the operation sequence stored in play. |
Definition at line 449 of file for_sparse_hes.hpp.