Go to the documentation of this file.
32 template <
size_t NROWS,
size_t NCOLS>
40 M.cols() == aux.cols() && M.rows() == aux.rows(),
42 "Size mismatch: deserialized is %ux%u, expected is %ux%u",
43 (
unsigned)aux.rows(), (
unsigned)aux.cols(), (
unsigned)NROWS,
50 template <
size_t NROWS,
size_t NCOLS>
58 M.cols() == aux.cols() && M.rows() == aux.rows(),
60 "Size mismatch: deserialized is %ux%u, expected is %ux%u",
61 (
unsigned)aux.rows(), (
unsigned)aux.cols(), (
unsigned)NROWS,
69 template <
size_t NROWS,
size_t NCOLS>
80 template <
size_t NROWS,
size_t NCOLS>
97 template <
typename T,
size_t NROWS,
size_t NCOLS>
102 fmt.matSuffix =
"\n";
103 return s << m.format(fmt);
108 template <
typename T>
113 fmt.matSuffix =
"\n";
114 return s << m.format(fmt);
119 template <
typename MAT>
124 for (decltype(N) i = 0; i < N; i++) in >> m(i, i);
125 for (decltype(N)
r = 0;
r < N - 1;
r++)
127 for (decltype(N)
c =
r + 1;
c < N;
c++)
131 m(
r,
c) = m(
c,
r) =
x;
138 template <
typename MAT>
143 for (decltype(N) i = 0; i < N; i++) out << m(i, i);
144 for (decltype(N)
r = 0;
r < N - 1;
r++)
145 for (decltype(N)
c =
r + 1;
c < N;
c++) out << m(
r,
c);
CMatrixTemplateNumeric< double > CMatrixDouble
Declares a matrix of double numbers (non serializable).
GLenum GLsizei GLenum format
CMatrixTemplateNumeric< float > CMatrixFloat
Declares a matrix of float numbers (non serializable).
std::ostream & operator<<(std::ostream &o, const TPoint2D &p)
#define ASSERT_EQUAL_(__A, __B)
Assert comparing two values, reporting their actual values upon failure.
void serializeSymmetricMatrixTo(MAT &m, mrpt::serialization::CArchive &out)
Binary serialization of symmetric matrices, saving the space of duplicated values.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Virtual base class for "archives": classes abstracting I/O streams.
A matrix of dynamic size.
GLdouble GLdouble GLdouble r
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrix::Ptr &pObj)
This class is a "CSerializable" wrapper for "CMatrixFloat".
void deserializeSymmetricMatrixFrom(MAT &m, mrpt::serialization::CArchive &in)
Binary serialization of symmetric matrices, saving the space of duplicated values.
A numeric matrix of compile-time fixed size.
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
void WriteObject(const CSerializable *o)
Writes an object to the stream.
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |