Index: matrix.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/numeric/ublas/matrix.hpp,v retrieving revision 1.72 diff -u -p -r1.72 matrix.hpp --- matrix.hpp 6 Dec 2006 09:34:01 -0000 1.72 +++ matrix.hpp 2 Jan 2007 20:11:12 -0000 @@ -941,6 +941,13 @@ namespace boost { namespace numeric { na return reverse_iterator2 (begin2 ()); } + // Serialization + template + void serialize(Archive & ar, const unsigned int /* file_version */){ + ar & size1_ & size2_; + ar & data_; + } + private: size_type size1_; size_type size2_; @@ -1960,6 +1967,13 @@ namespace boost { namespace numeric { na return reverse_iterator2 (begin2 ()); } + // Serialization + template + void serialize(Archive & ar, const unsigned int /* file_version */){ + ar & size1_ & size2_; + ar & data_; + } + private: size_type size1_; size_type size2_; @@ -4039,6 +4053,13 @@ namespace boost { namespace numeric { na return reverse_iterator2 (begin2 ()); } + // Serialization + template + void serialize(Archive & ar, const unsigned int /* file_version */){ + ar & size1_ & size2_; + for (size_type i=0; i