CppAD: A C++ Algorithmic Differentiation Package
20171217
|
VectorSet CppAD::ADFun< Base >::RevSparseHes | ( | size_t | q, |
const VectorSet & | s, | ||
bool | transpose = false |
||
) |
User API for Hessian sparsity patterns using reverse mode.
The C++ source code corresponding to this operation is
h = f.RevSparseHes(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> . |
transpose | is true (false) if is is equal to ![]() ![]()
![]() |
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 ![]() 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 ![]() m is the number of dependent variables corresponding to the operation sequence stored in play. |
transpose
is false (true), the return vector is a sparsity pattern for
Definition at line 494 of file rev_sparse_hes.hpp.
Referenced by CppAD::ipopt::solve_callback< Dvector, ADvector, FG_eval >::solve_callback().