File indexing completed on 2024-04-06 12:02:11
0001 #ifndef CondFormats_External_SMATRIX_H
0002 #define CondFormats_External_SMATRIX_H
0003
0004 #include <boost/serialization/base_object.hpp>
0005 #include <boost/serialization/nvp.hpp>
0006 #include <boost/serialization/split_free.hpp>
0007
0008
0009 #include <boost/serialization/vector.hpp>
0010 #include <boost/serialization/string.hpp>
0011 #include <boost/serialization/map.hpp>
0012
0013 #include <Math/SMatrix.h>
0014
0015 namespace boost {
0016 namespace serialization {
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 template <class Archive, typename T, unsigned int D1, unsigned int D2, class R>
0029 void serialize(Archive& ar, ROOT::Math::SMatrix<T, D1, D2, R>& obj, const unsigned int) {
0030 unsigned int i = 0;
0031 for (auto& value : obj) {
0032 ar& boost::serialization::make_nvp(std::to_string(i).c_str(), value);
0033 ++i;
0034 }
0035 }
0036
0037 }
0038 }
0039
0040 #endif