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

Sparse Matrix IO

Tags: None
(comma "," separated)
dsteiner
Registered Member
Posts
2
Karma
0

Sparse Matrix IO

Thu Oct 22, 2015 2:14 pm
Hey folks,

I'm really happy with using Eigen, however I stumbled upon a problem today.
I need to save a bunch of sparse matrices to a file (contrary to viewtopic.php?f=74&t=98756, where a single matrix is stored in a single file).
Even though the code in MarketIO does not look to complicated I would prefer not to mess up the Eigen code, since I'm not experienced in writing template code.
I wonder if there is a method to pack all necessary information of a sparse matrix into a single data buffer which I can write to a file by myself.

Greetings,
dsteiner
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Sparse Matrix IO  Topic is solved

Thu Oct 22, 2015 7:46 pm
nope, you will have to write your own serializer.
dsteiner
Registered Member
Posts
2
Karma
0

Re: Sparse Matrix IO

Mon Oct 26, 2015 8:33 am
Okay no problem, I will write my own function in that case (I already did for dense matrices, but that is really straight forward :) ).
However, I guess adding a general function like EigenObject2Mem and Mem2EigenObject would be nice and would allow people to freely load and save matrices/vectors/arrays in custom ways.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar