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

Subgraph sparsity patterns.

Template Parameters
Baseis the base type for this recording.
SizeVectoris the simple vector with elements of type size_t that is used for row, column index sparsity patterns.
select_domainsparsity pattern for the diagonal of the square matrix D.
select_rangesparsity pattern for the diagnoal of the square matrix R
transposeIf true, the return is a dependency sparsity pattern for $ D F^{(1)} (x)^T R $
pattern_outThe input value does not matter. The return value is a dependency sparsity pattern for $ R F^{(1)} (x) D $ where F is the function corresponding to the operation sequence and x is any argument value. is the sparsity pattern transposed.

Definition at line 167 of file subgraph_sparsity.hpp.