32 template <
size_t NROWS,
size_t NCOLS>
39 M.cols() == aux.cols() && M.rows() == aux.rows(),
41 "Size mismatch: deserialized is %ux%u, expected is %ux%u",
42 (
unsigned)aux.getRowCount(), (unsigned)aux.getColCount(),
43 (unsigned)NROWS, (
unsigned)NCOLS))
49 template <
size_t NROWS,
size_t NCOLS>
56 M.cols() == aux.cols() && M.rows() == aux.rows(),
58 "Size mismatch: deserialized is %ux%u, expected is %ux%u",
59 (
unsigned)aux.getRowCount(), (unsigned)aux.getColCount(),
60 (unsigned)NROWS, (
unsigned)NCOLS))
67 template <
size_t NROWS,
size_t NCOLS>
78 template <
size_t NROWS,
size_t NCOLS>
95 template <
typename T,
size_t NROWS,
size_t NCOLS>
100 fmt.matSuffix =
"\n";
101 return s << m.format(fmt);
106 template <
typename T>
111 fmt.matSuffix =
"\n";
112 return s << m.format(fmt);
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
A numeric matrix of compile-time fixed size.
std::ostream & operator<<(std::ostream &o, const TPoint2D &p)
CMatrixTemplateNumeric< double > CMatrixDouble
Declares a matrix of double numbers (non serializable).
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
CMatrixTemplateNumeric< float > CMatrixFloat
Declares a matrix of float numbers (non serializable).
void WriteObject(const CSerializable *o)
Writes an object to the stream.
mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CMatrix::Ptr &pObj)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A matrix of dynamic size.
This class is a "CSerializable" wrapper for "CMatrixFloat".
#define ASSERTMSG_(f, __ERROR_MSG)