Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions
mrpt::math::CMatrixTemplateNumeric< T > Class Template Reference

Detailed Description

template<class T>
class mrpt::math::CMatrixTemplateNumeric< T >

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).

Note
This class exists for backward compatibility of ancient times when MRPT didn't rely on Eigen, feel free to directly use Eigen::Matrix<> types instead.
See also
CMatrixTemplate (a non Eigen lib-based class, which can hold arbitrary objects, not only numerical types).
Note
For a complete introduction to Matrices and vectors in MRPT, see: http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes

Definition at line 37 of file CMatrixTemplateNumeric.h.

#include <mrpt/math/CMatrixTemplateNumeric.h>

Inheritance diagram for mrpt::math::CMatrixTemplateNumeric< T >:
Inheritance graph

Public Types

using Base = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::AutoAlign|Eigen::RowMajor >
 
using mrpt_autotype = CMatrixTemplateNumeric< T >
 

Public Member Functions

 CMatrixTemplateNumeric ()
 Default constructor, builds a 1x1 matrix. More...
 
 CMatrixTemplateNumeric (TConstructorFlags_Matrices)
 Constructor that builds a 0x0 matrix (that is, uninitialized), for usage in places where efficiency is a priority. More...
 
 CMatrixTemplateNumeric (size_t row, size_t col)
 Constructor, creates a matrix of the given size, filled with zeros. More...
 

Member Typedef Documentation

◆ Base

template<class T >
using mrpt::math::CMatrixTemplateNumeric< T >::Base = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::AutoAlign | Eigen::RowMajor>

Definition at line 46 of file CMatrixTemplateNumeric.h.

◆ mrpt_autotype

Definition at line 47 of file CMatrixTemplateNumeric.h.

Constructor & Destructor Documentation

◆ CMatrixTemplateNumeric() [1/3]

template<class T >
mrpt::math::CMatrixTemplateNumeric< T >::CMatrixTemplateNumeric ( )
inline

Default constructor, builds a 1x1 matrix.

Definition at line 50 of file CMatrixTemplateNumeric.h.

◆ CMatrixTemplateNumeric() [2/3]

Constructor that builds a 0x0 matrix (that is, uninitialized), for usage in places where efficiency is a priority.

Use as:

CMatrixTemplateNumeric<double> M( UNINITIALIZED_MATRIX);

Definition at line 58 of file CMatrixTemplateNumeric.h.

◆ CMatrixTemplateNumeric() [3/3]

template<class T >
mrpt::math::CMatrixTemplateNumeric< T >::CMatrixTemplateNumeric ( size_t  row,
size_t  col 
)
inline

Constructor, creates a matrix of the given size, filled with zeros.

Definition at line 60 of file CMatrixTemplateNumeric.h.

mrpt::math::UNINITIALIZED_MATRIX
@ UNINITIALIZED_MATRIX
Definition: math_frwds.h:75



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