Registered Member
|
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 |
Registered Member
|
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.
|
Registered Member
|
|
Registered Member
|
I have built a very simple library for serializing Eigen matrices to/from hdf5.
https://github.com/garrison/eigen3-hdf5 |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]