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

Initialize sparse matrix from CSR data?

Tags: None
(comma "," separated)
jbauer
Registered Member
Posts
25
Karma
0
Are there any routines in Eigen to directly initialize a sparse matrix given CSR data? The closet thing I could find is to assign a mapped sparse matrix to a sparse matrix. The mapped sparse matrix doesn't appear to be documented -- will support for this go away, or is it a feature I can rely on?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
In Eigen 3.2, MappedSparseMatrix is right way to go. In the devel branch (Eigen 3.3 and later), it is replaced by a more general Map<SparseMatrix>, but the old MappedSparseMatrix will still be available throughout the Eigen 3 lifetime.


Bookmarks



Who is online

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