|
CppAD: A C++ Algorithmic Differentiation Package
20130102
|
| VectorSet ADFun< Base >::RevSparseHes | ( | size_t | q, |
| const VectorSet & | s | ||
| ) |
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>. |
| q | is the value of q in the by the previous call of the form f.ForSparseJac(q, r, packed) 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. |
q*n. containing a sparsity pattern for the matrix
is the function corresponding to the operation sequence and x is any argument value. Definition at line 519 of file rev_sparse_hes.hpp.