31 template <
size_t NROWS,
size_t NCOLS>
35 ASSERTMSG_(M.cols()==aux.cols() && M.rows()==aux.rows(),
format(
"Size mismatch: deserialized is %ux%u, expected is %ux%u",(
unsigned)aux.getRowCount(),(unsigned)aux.getColCount(),(unsigned)NROWS,(
unsigned)NCOLS))
40 template <
size_t NROWS,
size_t NCOLS>
44 ASSERTMSG_(M.cols()==aux.cols() && M.rows()==aux.rows(),
format(
"Size mismatch: deserialized is %ux%u, expected is %ux%u",(
unsigned)aux.getRowCount(),(unsigned)aux.getColCount(),(unsigned)NROWS,(
unsigned)NCOLS))
50 template <
size_t NROWS,
size_t NCOLS>
57 template <
size_t NROWS,
size_t NCOLS>
72 template <
typename T,
size_t NROWS,
size_t NCOLS>
75 Eigen::IOFormat fmt; fmt.matSuffix=
"\n";
76 return s << m.format(fmt);
83 Eigen::IOFormat fmt; fmt.matSuffix=
"\n";
84 return s << m.format(fmt);
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
std::ostream BASE_IMPEXP & operator<<(std::ostream &o, const TPoint2D &p)
std::string BASE_IMPEXP format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
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.
CSerializablePtr ReadObject()
Reads an object from stream, its class determined at runtime, and returns a smart pointer to the obje...
CMatrixTemplateNumeric< double > CMatrixDouble
Declares a matrix of double numbers (non serializable).
CMatrixTemplateNumeric< float > CMatrixFloat
Declares a matrix of float numbers (non serializable).
BASE_IMPEXP ::mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CMatrixPtr &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)
void WriteObject(const CSerializable *o)
Writes an object to the stream.