Main MRPT website > C++ reference for MRPT 1.9.9
CMatrixD.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
13 
14 namespace mrpt
15 {
16 namespace math
17 {
18 /** This class is a "CSerializable" wrapper for
19  * "CMatrixTemplateNumeric<double>".
20  * \note For a complete introduction to Matrices and vectors in MRPT, see:
21  * http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes
22  * \ingroup mrpt_math_grp
23  */
25  public CMatrixTemplateNumeric<double>
26 {
28  public:
29  /** Constructor */
30  CMatrixD() : CMatrixTemplateNumeric<double>(1, 1) {}
31  /** Constructor */
32  CMatrixD(size_t row, size_t col) : CMatrixTemplateNumeric<double>(row, col)
33  {
34  }
35 
36  /** Copy constructor */
38  : CMatrixTemplateNumeric<double>(m)
39  {
40  }
41 
42  /** Copy constructor */
43  CMatrixD(const CMatrixFloat& m) : CMatrixTemplateNumeric<double>(0, 0)
44  {
45  *this = m.eval().cast<double>();
46  }
47 
48  /*! Assignment operator from any other Eigen class */
49  template <typename OtherDerived>
51  {
53  return *this;
54  }
55  /*! Constructor from any other Eigen class */
56  template <typename OtherDerived>
58  : CMatrixTemplateNumeric<double>(other)
59  {
60  }
61 
63 
64 }; // end of class definition
67 
68 } // End of namespace
69 } // End of namespace
mrpt::math::CMatrixD::CMatrixD
CMatrixD()
Constructor.
Definition: CMatrixD.h:30
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::math::CMatrixD::CMatrixD
CMatrixD(const CMatrixFloat &m)
Copy constructor
Definition: CMatrixD.h:43
mrpt::serialization::CArchive
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:48
mrpt::math::CMatrixD::CMatrixD
CMatrixD(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixD.h:57
mrpt::math::CMatrixD::CMatrixD
CMatrixD(const CMatrixTemplateNumeric< double > &m)
Copy constructor.
Definition: CMatrixD.h:37
mrpt::math::CMatrixTemplateNumeric
A matrix of dynamic size.
Definition: CMatrixTemplateNumeric.h:37
mrpt::math::CMatrixD::Ptr
std::shared_ptr< CMatrixD > Ptr
Definition: CMatrixD.h:27
mrpt::math::CMatrixD::operator=
CMatrixD & operator=(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixD.h:50
mrpt::math::CMatrixD::CMatrixD
CMatrixD(size_t row, size_t col)
Constructor.
Definition: CMatrixD.h:32
mrpt::math::operator>>
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrix::Ptr &pObj)
CMatrixTemplateNumeric.h
mrpt::serialization::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition: CSerializable.h:32
row
GLenum GLenum GLvoid * row
Definition: glext.h:3576
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
in
GLuint in
Definition: glext.h:7274
mrpt::math::CMatrixD
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
Definition: CMatrixD.h:24
MRPT_MATRIX_CONSTRUCTORS_FROM_POSES
#define MRPT_MATRIX_CONSTRUCTORS_FROM_POSES(_CLASS_)
Definition: math_frwds.h:95
Eigen::MatrixBase
Definition: eigen_frwds.h:20
CSerializable.h



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