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>
51 mrpt::utils::CStream &operator<<(mrpt::utils::CStream &out,const CMatrixFixedNumeric<float,NROWS,NCOLS> & M) {
53 out.WriteObject(&aux);
57 template <
size_t NROWS,
size_t NCOLS>
58 mrpt::utils::CStream &operator<<(mrpt::utils::CStream &out,const CMatrixFixedNumeric<double,NROWS,NCOLS> & M) {
60 out.WriteObject(&aux);
72 template <
typename T,
size_t NROWS,
size_t NCOLS>
73 inline std::ostream & operator << (std::ostream & s, const CMatrixFixedNumeric<T,NROWS,NCOLS>& m)
75 Eigen::IOFormat fmt; fmt.matSuffix=
"\n";
76 return s << m.format(fmt);
81 inline std::ostream & operator << (std::ostream & s, const CMatrixTemplateNumeric<T>& m)
83 Eigen::IOFormat fmt; fmt.matSuffix=
"\n";
84 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.
CMatrixTemplateNumeric< double > CMatrixDouble
Declares a matrix of double numbers (non serializable).
std::string BASE_IMPEXP 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).
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.
This class is a "CSerializable" wrapper for "CMatrixFloat".
#define ASSERTMSG_(f, __ERROR_MSG)