CppAD: A C++ Algorithmic Differentiation Package 20110419
template<class Base , class VectorSet >
void RevSparseJacSet ( size_t  p,
const VectorSet &  s,
VectorSet &  r,
size_t  total_num_var,
CppAD::vector< size_t > &  dep_taddr,
CppAD::vector< size_t > &  ind_taddr,
CppAD::player< Base > &  play 
)

Calculate Jacobian sparsity patterns using reverse mode.

The C++ source code corresponding to this operation is

	s = f.RevSparseJac(q, r)
Template Parameters:
Baseis the base type for this recording.
VectorSetis a simple vector class with elements of type std::set<size_t>.
Parameters:
pis the number of rows in the matrix $ S $.
sis a sparsity pattern for the matrix $ S $.
rthe input value of r must be a vector with size p. On input, each element of r mus be an empty set. On output, r is the sparsity pattern for the matrix

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

where $ F $ is the function corresponding to the operation sequence and x is any argument value.
total_num_varis the total number of variable in this recording.
dep_taddrmaps dependendent variable index to the corresponding variable in the tape.
ind_taddrmaps independent variable index to the corresponding variable in the tape.
playis the recording that defines the function we are computing the sparsity pattern for.

Definition at line 308 of file rev_sparse_jac.hpp.

Referenced by ADFun< Base >::RevSparseJacCase().