CppAD: A C++ Algorithmic Differentiation Package  20130918
template<class VectorSet >
void CppAD::sparsity_user2internal ( sparse_list &  internal,
const VectorSet &  user,
size_t  n_row,
size_t  n_col,
bool  transpose 
)

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::list<set>.
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_rownumber of rows in the sparsity pattern in user (range dimension).
n_colnumber of columns in the sparsity pattern in user (domain dimension).
transposeif true, the sparsity pattern in internal is the transpose of the one in user. Otherwise it is the same sparsity pattern.

Definition at line 380 of file sparse_list.hpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines