MRPT  1.9.9
CMatrixF.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
14 
15 namespace mrpt::math
16 {
17 /** This class is a "CSerializable" wrapper for "CMatrixFloat".
18  * \note For a complete introduction to Matrices and vectors in MRPT, see:
19  * https://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes
20  * \ingroup mrpt_math_grp
21  */
23 {
26 
27  public:
28  /** Constructor */
29  CMatrixF() : CMatrixFloat(1, 1) {}
30 
31  /** Constructor */
32  CMatrixF(size_t row, size_t col) : CMatrixFloat(row, col) {}
33 
34  /** Copy constructor */
35  explicit CMatrixF(const CMatrixFloat& m) : CMatrixFloat(m) {}
36 
37  /** Copy constructor */
38  explicit CMatrixF(const CMatrixDynamic<double>& m) : CMatrixFloat(m) {}
40 
41  /** Assignment operator for float matrixes
42  */
43  template <class OTHERMAT>
44  inline CMatrixF& operator=(const OTHERMAT& m)
45  {
47  return *this;
48  }
49 
50  /*! Assignment operator from any other Eigen class */
51  template <typename OtherDerived>
53  {
55  return *this;
56  }
57  /*! Constructor from any other Eigen class */
58  template <typename OtherDerived>
60  : CMatrixDynamic<float>(other)
61  {
62  }
63 
64 }; // end of class definition
67 
68 } // namespace mrpt::math
CMatrixF & operator=(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixF.h:52
CMatrixF(size_t row, size_t col)
Constructor.
Definition: CMatrixF.h:32
CMatrixF & operator=(const OTHERMAT &m)
Assignment operator for float matrixes.
Definition: CMatrixF.h:44
#define DEFINE_SCHEMA_SERIALIZABLE()
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrixD::Ptr &pObj)
This base provides a set of functions for maths stuff.
CMatrixF(const CMatrixFloat &m)
Copy constructor.
Definition: CMatrixF.h:35
CMatrixF(const CMatrixDynamic< double > &m)
Copy constructor.
Definition: CMatrixF.h:38
CMatrixF(const Eigen::MatrixBase< OtherDerived > &other)
Definition: CMatrixF.h:59
CMatrixDynamic & operator=(const CMatrixDynamic< T > &m)=default
This class is a "CSerializable" wrapper for "CMatrixFloat".
Definition: CMatrixF.h:22
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:54
The virtual base class which provides a unified interface for all persistent objects in MRPT...
Definition: CSerializable.h:30
std::shared_ptr< mrpt::math ::CMatrixF > Ptr
Definition: CMatrixF.h:24
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define MRPT_MATRIX_CONSTRUCTORS_FROM_POSES(_CLASS_)
This template class provides the basic functionality for a general 2D any-size, resizable container o...



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020