MRPT
2.0.4
mrpt
math
CMatrixB.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
11
#include <
mrpt/math/CMatrixDynamic.h
>
12
#include <
mrpt/serialization/CSerializable.h
>
13
14
namespace
mrpt::math
15
{
16
/** This class is a "CSerializable" wrapper for "CMatrixBool".
17
* \note For a complete introduction to Matrices and vectors in MRPT, see:
18
* https://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes
19
* \ingroup mrpt_math_grp
20
*/
21
class
CMatrixB
:
public
mrpt::serialization::CSerializable
,
public
CMatrixBool
22
{
23
DEFINE_SERIALIZABLE
(
CMatrixB
,
mrpt::math
)
24
public
:
25
/** Constructor */
26
CMatrixB
(
size_t
row
= 1,
size_t
col
= 1) :
CMatrixBool
(
row
,
col
) {}
27
/** Copy constructor */
28
CMatrixB
(
const
CMatrixBool
& m) :
CMatrixBool
(m) {}
29
/** Assignment operator for float matrixes */
30
CMatrixB
&
operator=
(
const
CMatrixBool
& m)
31
{
32
CMatrixBool::operator=
(m);
33
return
*
this
;
34
}
35
};
// end of class definition
36
37
}
// namespace mrpt::math
mrpt::math::MatrixBase< T, CMatrixDynamic< T > >::col
auto col(int colIdx)
Definition:
MatrixBase.h:89
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:152
mrpt::math::CMatrixDynamic::operator=
CMatrixDynamic & operator=(const CMatrixDynamic< T > &m)=default
mrpt::math::CMatrixB
This class is a "CSerializable" wrapper for "CMatrixBool".
Definition:
CMatrixB.h:21
mrpt::serialization::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition:
CSerializable.h:30
mrpt::math::CMatrixB::CMatrixB
CMatrixB(const CMatrixBool &m)
Copy constructor.
Definition:
CMatrixB.h:28
CMatrixDynamic.h
mrpt::math::MatrixBase< T, CMatrixDynamic< T > >::row
auto row(int rowIdx)
Definition:
MatrixBase.h:100
mrpt::math::CMatrixB::operator=
CMatrixB & operator=(const CMatrixBool &m)
Assignment operator for float matrixes.
Definition:
CMatrixB.h:30
mrpt::math::CMatrixB::CMatrixB
CMatrixB(size_t row=1, size_t col=1)
Constructor.
Definition:
CMatrixB.h:26
mrpt::math
This base provides a set of functions for maths stuff.
Definition:
math/include/mrpt/math/bits_math.h:11
CSerializable.h
mrpt::math::CMatrixDynamic
This template class provides the basic functionality for a general 2D any-size, resizable container o...
Definition:
CMatrixDynamic.h:39
Page generated by
Doxygen 1.8.17
for MRPT 2.0.4 at Fri Jul 17 08:43:33 UTC 2020