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

how to output eigen sparse matrix into CSR format?

Tags: None
(comma "," separated)
chunkaowang
Registered Member
Posts
5
Karma
0
I have a matrix built into eigen sparse matrix. I want to output the matrix into files with CRS format. How can I do this? Thank you!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You can copy it into a SparseMatrix<double,RowMajor> and iterate classically over its non-zeros to output them in the right order.


Bookmarks



Who is online

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