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::math
15 {
16 /** This class is a "CSerializable" wrapper for
17  * "CMatrixTemplateNumeric<double>".
18  * \note For a complete introduction to Matrices and vectors in MRPT, see:
19  * http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes
20  * \ingroup mrpt_math_grp
21  */
23  public CMatrixTemplateNumeric<double>
24 {
26  public:
27  /** Constructor */
28  CMatrixD() : CMatrixTemplateNumeric<double>(1, 1) {}
29  /** Constructor */
30  CMatrixD(size_t row, size_t col) : CMatrixTemplateNumeric<double>(row, col)
31  {
32  }
33 
34  /** Copy constructor */
36  : CMatrixTemplateNumeric<double>(m)
37  {
38  }
39 
40  /** Copy constructor */
41  CMatrixD(const CMatrixFloat& m) : CMatrixTemplateNumeric<double>(0, 0)
42  {
43  *this = m.eval().cast<double>();
44  }
45 
46  /*! Assignment operator from any other Eigen class */
47  template <typename OtherDerived>
49  {
51  return *this;
52  }
53  /*! Constructor from any other Eigen class */
54  template <typename OtherDerived>
56  : CMatrixTemplateNumeric<double>(other)
57  {
58  }
59 
61 
62 }; // end of class definition
65 
66 }
67 
This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".
Definition: CMatrixD.h:22
CMatrixD(const CMatrixFloat &m)
Copy constructor.
Definition: CMatrixD.h:41
CMatrixD(size_t row, size_t col)
Constructor.
Definition: CMatrixD.h:30
This base provides a set of functions for maths stuff.
CMatrixD & operator=(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixD.h:48
#define MRPT_MATRIX_CONSTRUCTORS_FROM_POSES(_CLASS_)
Definition: math_frwds.h:95
std::shared_ptr< CMatrixD > Ptr
Definition: CMatrixD.h:25
CMatrixD()
Constructor.
Definition: CMatrixD.h:28
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:52
GLenum GLenum GLvoid * row
Definition: glext.h:3576
GLuint in
Definition: glext.h:7274
The virtual base class which provides a unified interface for all persistent objects in MRPT...
Definition: CSerializable.h:30
CMatrixD(const CMatrixTemplateNumeric< double > &m)
Copy constructor.
Definition: CMatrixD.h:35
CMatrixD(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixD.h:55
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrix::Ptr &pObj)



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020