|
CppAD: A C++ Algorithmic Differentiation Package
20171217
|
| void CppAD::ADFun< Base >::ForSparseJacCheckpoint | ( | size_t | q, |
| const local::sparse_list & | r, | ||
| bool | transpose, | ||
| bool | dependency, | ||
| local::sparse_list & | s | ||
| ) |
Forward mode Jacobian sparsity calculation used by checkpoint functions.
| Base | is the base type for this recording. |
| transpose | is true (false) s is equal to ( ) where
is the function corresponding to the operation sequence and is any argument value. |
| q | is the number of columns in the matrix . |
| r | is a sparsity pattern for the matrix . |
| transpose | are the sparsity patterns for and transposed. |
| dependency | Are the derivatives with respect to left and right of the expression below considered to be non-zero: CondExpRel(left, right, if_true, if_false)
|
| s | The input size and elements of s do not matter. On output, s is the sparsity pattern for the matrix or depending on transpose. |
VectorSet::value_type is bool, the forward sparsity pattern for all of the variables on the tape is stored in for_jac_sparse_pack__. In this case for_jac_sparse_pack_.n_set() == num_var_tape_
for_jac_sparse_pack_.end() == q
for_jac_sparse_set_.n_set() == 0
for_jac_sparse_set_.end() == 0
VectorSet::value_type is std::set<size_t>, the forward sparsity pattern for all of the variables on the tape is stored in for_jac_sparse_set__. In this case for_jac_sparse_set_.n_set() == num_var_tape_
for_jac_sparse_set_.end() == q
for_jac_sparse_pack_.n_set() == 0
for_jac_sparse_pack_.end() == 0
Definition at line 647 of file for_sparse_jac.hpp.