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_sizevec &  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_sizevec object.

Template Parameters
VectorSetis a simple vector with elements of type std::set<size_t>.
Parameters
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 1434 of file sparse_sizevec.hpp.