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

Best way to export eigen3 sparse matrix to matlab

Tags: None
(comma "," separated)
fbento
Registered Member
Posts
6
Karma
0
Hello,

I'm working with sparse matrices in eigen3 c++. I would like to export the matrix to a file which will then be read in matlab.

What is the best way to do this? Can I save it in binary format (faster) or ASCII is needed?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
In unsupported/Eigen/SparseExtra you will find a saveMarket("filename", mat) function to export a sparse matrix to ascii matrix market format. That's all we offer for now.
fbento
Registered Member
Posts
6
Karma
0
Thanks ggael. That worked. However a sparse binary extract option would be even better. :)


Bookmarks



Who is online

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