This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Setup sparse matrix in Compressed Column Scheme

Tags: sparse matrix sparse matrix sparse matrix
(comma "," separated)
Enrah
Registered Member
Posts
1
Karma
0
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
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
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


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]