CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
template<class BoolVector , class SizeVector >
void CppAD::ADFun< Base >::for_hes_sparsity ( const BoolVector &  select_domain,
const BoolVector &  select_range,
bool  internal_bool,
sparse_rc< SizeVector > &  pattern_out 
)

Forward Hessian sparsity patterns.

Template Parameters
Baseis the base type for this recording.
BoolVectoris the simple vector with elements of type bool that is used for sparsity for the vector s.
SizeVectoris the simple vector with elements of type size_t that is used for row, column index sparsity patterns.
Parameters
select_domainis a sparsity pattern for for the diagonal of D.
select_rangeis a sparsity pattern for for s.
internal_boolIf this is true, calculations are done with sets represented by a vector of boolean values. Otherwise, a vector of standard sets is used.
pattern_outThe return value is a sparsity pattern for H(x) where

\[ H(x) = D * F^{(1)} (x) * D \]

Here F is the function corresponding to the operation sequence and x is any argument value.

Definition at line 161 of file for_hes_sparsity.hpp.