Re: [eigen] Eigen binary I/O proposal |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Eigen binary I/O proposal
- From: Neal Becker <ndbecker2@xxxxxxxxx>
- Date: Wed, 8 Jul 2009 08:19:26 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=mjPktqJ9vfasIGKXY4+gw7dp+lP8qse0CBuixmXc/IM=; b=uJ0/sZJ6WQtTwtmL6vT6IiO/1XTGTae09qaMWDLpY+FADFscPPCkRfyZI5PFTYFKxo z7gYigL9nWGU/RaHmZko1n7YWq3yaW5O7rsJYnEQ3kQSsJ419drfo7u4wKbgrJbbNIHR mw0f3uHlP45hfpZ8nM0sQvuaqWsCxoZWPZnqQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=AgKKPow+p3REgR4wTrACtc3U3KO1NAh6hcMaXCXB8xUJEJSFYM80kk7u/wiROb800m 4d/h4B3O9xyLKni1XIRvDOlJZPlOzmaT5Aablfc+wMHHmac8d/NdRlofvVG6gcALpIaJ A09r5UH1Ha51VaZx2j6MJDySn35f6ZOjEaBN8=
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