22 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 27 #include <boost/serialization/array.hpp> 28 #include <boost/serialization/nvp.hpp> 29 #include <boost/serialization/split_free.hpp> 32 namespace serialization {
50 template <
class Archive,
typename Scalar_,
int Rows_,
int Cols_,
int Ops_,
51 int MaxRows_,
int MaxCols_>
55 const unsigned int ) {
57 ar << BOOST_SERIALIZATION_NVP(rows);
58 ar << BOOST_SERIALIZATION_NVP(
cols);
59 ar << make_nvp(
"data", make_array(m.
data(), m.size()));
62 template <
class Archive,
typename Scalar_,
int Rows_,
int Cols_,
int Ops_,
63 int MaxRows_,
int MaxCols_>
64 void load(Archive& ar,
66 const unsigned int ) {
68 ar >> BOOST_SERIALIZATION_NVP(rows);
69 ar >> BOOST_SERIALIZATION_NVP(cols);
71 ar >> make_nvp(
"data", make_array(m.
data(), m.size()));
75 template <
class Archive,
typename Scalar_,
int Rows_,
int Cols_,
int Ops_,
76 int MaxRows_,
int MaxCols_>
81 split_free(ar, m, version);
85 template <
class Archive>
87 split_free(ar, m, version);
std::string serialize(const T &input)
serializes to a string
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT