|
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 , where 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 , where m is the number of dependent variables corresponding to the operation sequence stored in play. |
is the function corresponding to the operation sequence and x is any argument value. Definition at line 449 of file for_sparse_hes.hpp.