CppAD: A C++ Algorithmic Differentiation Package
20171217
|
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.
VectorSet | is a simple vector with elements of type std::set<size_t>. |
internal | The input value of sparisty does not matter. Upon return it contains the same sparsity pattern as user (or the transposed sparsity pattern). |
user | sparsity pattern that we are placing internal. |
n_set | number of sets (rows) in the internal sparsity pattern. |
end | end of set value (number of columns) in the interanl sparsity pattern. |
transpose | if true, the user sparsity patter is the transposed. |
error_msg | is 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().