Re: [eigen] Matrix IO

[ Thread Index | Date Index | More Archives ]

I'd like to implement text-based input, extending
Eigen/src/Core/IO.h.  I'm trying to use IOFormat class.
It will at least be able to read Eigen's output.


On Sat, Jul 19, 2014 at 18:02:23,Kolja Brix wrote:
> Dear Eigen enthusiasts,
> currently I am looking for matrix IO, in particular matrix IO from and
> to files.
> Up to now, I know about the following solutions:
> * In eigen/unsupported/Eigen/src/SparseExtra there is MarketIO.h, which
> loads sparse matrices from and saves them to files in Matrix Market
> format, which is an ASCII format.
> * There is an extension of Eigen, which saves Eigen matrices to HDF5
> format <> and reads them back in, both
> using the HDF5 library and a C++ wrapper. The code can be found on
> <>.
> The advantage of the HDF5 format is that it handles different byte order
> on different systems and can store and handle multiple matrices in a
> single file. Unfortunately, the implementation currently needs C++11,
> while the author claims that it is easy to make
> the code compatible with C++98.
> So in the first case, there is neither support for binary IO nor for
> dense matrices. In the second case, an extra library is needed and
> currently C++98 is not supported.
> Is there another, maybe more native solution? If not, can we come up
> with a simple but efficient solution? What should the API look like?

Mail converted by MHonArc 2.6.19+