CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class VectorSet >
void CppAD::local::sparsity_user2internal ( sparse_list &  internal,
const VectorSet &  user,
size_t  n_set,
size_t  end,
bool  transpose,
const char *  error_msg 

Copy a user vector of sets sparsity pattern to an internal sparse_list object.

Template Parameters
VectorSetis a simple vector with elements of type std::set<size_t>.
internalThe input value of sparisty does not matter. Upon return it contains the same sparsity pattern as user (or the transposed sparsity pattern).
usersparsity pattern that we are placing internal.
n_setnumber of sets (rows) in the internal sparsity pattern.
endend of set value (number of columns) in the interanl sparsity pattern.
transposeif true, the user sparsity patter is the transposed.
error_msgis the error message to display if some values in the user sparstiy pattern are not valid.

Definition at line 1416 of file sparse_list.hpp.

Referenced by CppAD::ADFun< Base >::SparseHessian(), CppAD::ADFun< Base >::SparseJacobian(), CppAD::ADFun< Base >::SparseJacobianForward(), and CppAD::ADFun< Base >::SparseJacobianReverse().