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

matrixXd to hdf5

Tags: None
(comma "," separated)
grinderfox
Registered Member
Posts
9
Karma
0

matrixXd to hdf5

Tue Jun 14, 2011 10:46 am
Hi,
I was wondering how one can write MatrixXd to hdf5 file format.
The H5::DateSet::write fn takes void* as a argument, and if I put the address to the Eigen matrix var, I get rubish. Is it possible to get a pt to an array out of a MatrixXd obj?
thanx,
grinderfox
jitseniesen
Registered Member
Posts
204
Karma
2

Re: matrixXd to hdf5  Topic is solved

Tue Jun 14, 2011 11:02 am
Use matrix.data() to get the pointer to the array containing the matrix entries. The example on the page about storage orders, http://eigen.tuxfamily.org/dox/TopicStorageOrders.html , might help you. The API documentation is at http://eigen.tuxfamily.org/dox/classEig ... d9bce08c3a but that is perhaps not so useful.
grinderfox
Registered Member
Posts
9
Karma
0

Re: matrixXd to hdf5

Tue Jun 14, 2011 11:29 am
thanx, saved my life...
garrison
Registered Member
Posts
8
Karma
0

Re: matrixXd to hdf5

Mon Oct 14, 2013 6:20 am
I have built a very simple library for serializing Eigen matrices to/from hdf5.

https://github.com/garrison/eigen3-hdf5


Bookmarks



Who is online

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