CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
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.

Template Parameters
Baseis the base type for this recording.
Parameters
transposeis true (false) h is equal to $ H(x) $ ( $ H(x)^T $) where

\[ H(x) = R^T (S * F)^{(2)} (x) \]

where $ F $ is the function corresponding to the operation sequence and $ x $ is any argument value.
qis 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 $ R $.
sis a vector with size m that specifies the sparsity pattern for the vector $ S $, where m is the number of dependent variables corresponding to the operation sequence stored in play_.
hThe input size and elements of h do not matter. On output, h is the sparsity pattern for the matrix $ H(x) $ or $ H(x)^T $ depending on transpose.
Assumptions
The forward jacobian sparsity pattern must be currently stored in this ADFUN object.

Definition at line 552 of file rev_sparse_hes.hpp.