CppAD: A C++ Algorithmic Differentiation Package
20171217
|
void CppAD::ADFun< Base >::RevSparseHesCheckpoint | ( | size_t | q, |
vector< bool > & | s, | ||
bool | transpose, | ||
local::sparse_list & | h | ||
) |
Hessian sparsity patterns calculation used by checkpoint functions.
Base | is the base type for this recording. |
transpose | is true (false) h is equal to ( ) where where is the function corresponding to the operation sequence and is any argument value. |
q | is the value of q in the by the previous call of the form f.ForSparseJac(q, r)The value r in this call is a sparsity pattern for the matrix . |
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_. |
h | The input size and elements of h do not matter. On output, h is the sparsity pattern for the matrix or depending on transpose. |
Definition at line 552 of file rev_sparse_hes.hpp.