A matrix of dynamic size.
Basically, this class is a wrapper on Eigen::Matrix<T,Dynamic,Dynamic>, but with a RowMajor element memory layout (except for column vectors).
Definition at line 32 of file CMatrixTemplateNumeric.h.
#include <mrpt/math/CMatrixTemplateNumeric.h>
Public Types | |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::AutoAlign|Eigen::RowMajor > | Base |
typedef CMatrixTemplateNumeric< T > | mrpt_autotype |
Public Member Functions | |
CMatrixTemplateNumeric () | |
Default constructor, builds a 1x1 matrix. | |
CMatrixTemplateNumeric (TConstructorFlags_Matrices) | |
Constructor that builds a 0x0 matrix (that is, uninitialized), for usage in places where efficiency is a priority. | |
CMatrixTemplateNumeric (size_t row, size_t col) | |
Constructor, creates a matrix of the given size, filled with zeros. | |
template<class R > | |
CMatrixTemplateNumeric< T > & | operator= (const CMatrixTemplate< R > &m) |
Assignment operator of other types. | |
template<typename Derived > | |
CMatrixTemplateNumeric< T > & | operator= (const Eigen::MatrixBase< Derived > &m) const |
Assignment from any Eigen matrix/vector. | |
template<typename V , size_t N> | |
CMatrixTemplateNumeric (size_t row, size_t col, V(&theArray)[N]) | |
Constructor from a given size and a C array. | |
~CMatrixTemplateNumeric () | |
Destructor. | |
template<typename Derived > | |
bool | operator== (const Eigen::MatrixBase< Derived > &m2) const |
== comparison of two matrices; it differs from default Eigen operator in that returns false if matrices are of different sizes instead of raising an assert. | |
template<typename Derived > | |
bool | operator!= (const Eigen::MatrixBase< Derived > &m2) const |
!= comparison of two matrices; it differs from default Eigen operator in that returns true if matrices are of different sizes instead of raising an assert. | |
typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic,Eigen::AutoAlign|Eigen::RowMajor> mrpt::math::CMatrixTemplateNumeric< T >::Base |
Definition at line 42 of file CMatrixTemplateNumeric.h.
typedef CMatrixTemplateNumeric<T> mrpt::math::CMatrixTemplateNumeric< T >::mrpt_autotype |
Definition at line 43 of file CMatrixTemplateNumeric.h.
|
inline |
Default constructor, builds a 1x1 matrix.
Definition at line 48 of file CMatrixTemplateNumeric.h.
|
inline |
Constructor that builds a 0x0 matrix (that is, uninitialized), for usage in places where efficiency is a priority.
Use as:
Definition at line 56 of file CMatrixTemplateNumeric.h.
|
inline |
Constructor, creates a matrix of the given size, filled with zeros.
Definition at line 59 of file CMatrixTemplateNumeric.h.
|
inline |
Constructor from a given size and a C array.
The array length must match cols x row.
Definition at line 94 of file CMatrixTemplateNumeric.h.
References ASSERT_EQUAL_.
|
inline |
Destructor.
Definition at line 103 of file CMatrixTemplateNumeric.h.
|
inline |
!= comparison of two matrices; it differs from default Eigen operator in that returns true if matrices are of different sizes instead of raising an assert.
Definition at line 115 of file CMatrixTemplateNumeric.h.
|
inline |
Assignment operator of other types.
Definition at line 66 of file CMatrixTemplateNumeric.h.
References mrpt::math::CMatrixTemplate< T >::get_unsafe(), mrpt::math::CMatrixTemplate< T >::getColCount(), and mrpt::math::CMatrixTemplate< T >::getRowCount().
Referenced by mrpt::math::CMatrix::operator=(), mrpt::math::CMatrixD::operator=(), and mrpt::math::CMatrix::operator=().
|
inline |
Assignment from any Eigen matrix/vector.
Definition at line 78 of file CMatrixTemplateNumeric.h.
|
inline |
== comparison of two matrices; it differs from default Eigen operator in that returns false if matrices are of different sizes instead of raising an assert.
Definition at line 107 of file CMatrixTemplateNumeric.h.
Page generated by Doxygen 1.9.8 for MRPT 1.4.0 SVN: at Fri Dec 15 05:36:48 UTC 2023 |