Registered Member
|
Hello,
I'd like to construct a sparse Eigen matrix from given arrays containing the Values, InnerIndices and OuterStarts. Is is possible to do so directly without first constructing a vector of triplets? Cheers |
Moderator
|
The class MappedSparseMatrix is what you're looking for. You can use it as a SparseMatrix or copy it to a SparseMatrix. Direct link to the respective ctor:
https://bitbucket.org/eigen/eigen/src/9 ... ult#cl-108 |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]