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 >::RevSparseJacCheckpoint ( size_t  q,
const local::sparse_list r,
bool  transpose,
bool  dependency,
local::sparse_list s 
)

Reverse mode Jacobian sparsity calculation used by checkpoint functions.

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

\[ S(x) = R * F^{(1)} (x) \]

where $ F $ is the function corresponding to the operation sequence and $ x $ is any argument value.
qis the number of rows in the matrix $ R $.
ris a sparsity pattern for the matrix $ R $.
transposeare the sparsity patterns for $ R $ and $ S(x) $ transposed.
dependencyAre the derivatives with respect to left and right of the expression below considered to be non-zero:
CondExpRel(left, right, if_true, if_false)
This is used by the optimizer to obtain the correct dependency relations.
sThe input size and elements of s do not matter. On output, s is the sparsity pattern for the matrix $ S(x) $ or $ S(x)^T $ depending on transpose.

Definition at line 543 of file rev_sparse_jac.hpp.