CppAD: A C++ Algorithmic Differentiation Package  20130102
template<class Base >
template<class VectorSet >
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)
Template Parameters:
Baseis the base type for this recording.
VectorSetis a simple vector with elements of type bool or std::set<size_t>.
Parameters:
qis the value of q in the by the previous call of the form
	f.ForSparseJac(q, r, packed)
The value r in this call is a sparsity pattern for the matrix $ R $. 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.
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.
Returns:
is a vector with size q*n. containing a sparsity pattern for the matrix

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

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

Definition at line 519 of file rev_sparse_hes.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines