Re: [eigen] Eigen binary I/O proposal

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On Tuesday 07 July 2009, Kenneth Riddile wrote:
> FWIW, I've been using Boost.Serialization to serialize Eigen types to
> binary and XML for quite awhile.  Boost.Serialization's separation of the
> archive and stream concepts allows all kinds of creative combinations, such
> as serializing to XML that is then written to a zlib compressed stream,
> etc.  Here is the relevent documentation for adding serialization support
> in a non-intrusive manner:
> http://www.boost.org/doc/libs/1_39_0/libs/serialization/doc/tutorial.html#n
>onintrusiveversion
>
Don't forget that when serializing a sequence to use:


#include <boost/serialization/collection_size_type.hpp>
#include <boost/serialization/nvp.hpp>

for example, see boost/numeric/ublas/vector.hpp



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/