Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Types | Public Member Functions
mrpt::math::CMatrixD Class Reference

Detailed Description

This class is a "CSerializable" wrapper for "CMatrixTemplateNumeric<double>".

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 30 of file CMatrixD.h.

#include <mrpt/math/CMatrixD.h>

Inheritance diagram for mrpt::math::CMatrixD:
Inheritance graph

Public Types

typedef Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::AutoAlign|Eigen::RowMajor > Base
 
typedef CMatrixTemplateNumeric< double > mrpt_autotype
 

Public Member Functions

 CMatrixD ()
 Constructor.
 
 CMatrixD (size_t row, size_t col)
 Constructor.
 
 CMatrixD (const CMatrixTemplateNumeric< double > &m)
 Copy constructor.
 
 CMatrixD (const CMatrixFloat &m)
 Copy constructor

 
template<typename OtherDerived >
CMatrixDoperator= (const Eigen::MatrixBase< OtherDerived > &other)
 
template<typename OtherDerived >
 CMatrixD (const Eigen::MatrixBase< OtherDerived > &other)
 
 CMatrixD (const TPose2D &p)
 Constructor from a TPose2D, which generates a 3x1 matrix $ [x y \phi]^T $

 
 CMatrixD (const TPose3D &p)
 Constructor from a TPose3D, which generates a 6x1 matrix $ [x y z yaw pitch roll]^T $

 
 CMatrixD (const TPoint2D &p)
 Constructor from a TPoint2D, which generates a 2x1 matrix $ [x y]^T $.
 
 CMatrixD (const TPoint3D &p)
 Constructor from a TPoint3D, which generates a 3x1 matrix $ [x y z]^T $.
 
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.
 
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.
 

Protected Member Functions

CSerializable virtual methods
void BASE_IMPEXP writeToStream (mrpt::utils::CStream &out, int *getVersion) const MRPT_OVERRIDE
 
void BASE_IMPEXP readFromStream (mrpt::utils::CStream &in, int version) MRPT_OVERRIDE
 

RTTI stuff <br>

typedef CMatrixDPtr SmartPtr
 
static BASE_IMPEXP mrpt::utils::CLASSINIT _init_CMatrixD
 
static BASE_IMPEXP mrpt::utils::TRuntimeClassId classCMatrixD
 
static BASE_IMPEXP const mrpt::utils::TRuntimeClassIdclassinfo
 
static BASE_IMPEXP const mrpt::utils::TRuntimeClassId_GetBaseClass ()
 
virtual BASE_IMPEXP const mrpt::utils::TRuntimeClassIdGetRuntimeClass () const MRPT_OVERRIDE
 
virtual BASE_IMPEXP mrpt::utils::CObjectduplicate () const MRPT_OVERRIDE
 
static BASE_IMPEXP mrpt::utils::CObjectCreateObject ()
 
static BASE_IMPEXP CMatrixDPtr Create ()
 

Member Typedef Documentation

◆ Base

typedef Eigen::Matrix<double ,Eigen::Dynamic,Eigen::Dynamic,Eigen::AutoAlign|Eigen::RowMajor> mrpt::math::CMatrixTemplateNumeric< double >::Base
inherited

Definition at line 42 of file CMatrixTemplateNumeric.h.

◆ mrpt_autotype

typedef CMatrixTemplateNumeric<double > mrpt::math::CMatrixTemplateNumeric< double >::mrpt_autotype
inherited

Definition at line 43 of file CMatrixTemplateNumeric.h.

◆ SmartPtr

typedef CMatrixDPtr mrpt::math::CMatrixD::SmartPtr

A typedef for the associated smart pointer

Definition at line 33 of file CMatrixD.h.

Constructor & Destructor Documentation

◆ CMatrixD() [1/9]

mrpt::math::CMatrixD::CMatrixD ( )
inline

Constructor.

Definition at line 36 of file CMatrixD.h.

◆ CMatrixD() [2/9]

mrpt::math::CMatrixD::CMatrixD ( size_t  row,
size_t  col 
)
inline

Constructor.

Definition at line 40 of file CMatrixD.h.

◆ CMatrixD() [3/9]

mrpt::math::CMatrixD::CMatrixD ( const CMatrixTemplateNumeric< double > &  m)
inline

Copy constructor.

Definition at line 44 of file CMatrixD.h.

◆ CMatrixD() [4/9]

mrpt::math::CMatrixD::CMatrixD ( const CMatrixFloat m)
inline

Copy constructor

Definition at line 48 of file CMatrixD.h.

◆ CMatrixD() [5/9]

template<typename OtherDerived >
mrpt::math::CMatrixD::CMatrixD ( const Eigen::MatrixBase< OtherDerived > &  other)
inline

Constructor from any other Eigen class

Definition at line 60 of file CMatrixD.h.

◆ CMatrixD() [6/9]

mrpt::math::CMatrixD::CMatrixD ( const TPose2D p)
explicit

Constructor from a TPose2D, which generates a 3x1 matrix $ [x y \phi]^T $

◆ CMatrixD() [7/9]

mrpt::math::CMatrixD::CMatrixD ( const TPose3D p)
explicit

Constructor from a TPose3D, which generates a 6x1 matrix $ [x y z yaw pitch roll]^T $

◆ CMatrixD() [8/9]

mrpt::math::CMatrixD::CMatrixD ( const TPoint2D p)
explicit

Constructor from a TPoint2D, which generates a 2x1 matrix $ [x y]^T $.

◆ CMatrixD() [9/9]

mrpt::math::CMatrixD::CMatrixD ( const TPoint3D p)
explicit

Constructor from a TPoint3D, which generates a 3x1 matrix $ [x y z]^T $.

Member Function Documentation

◆ _GetBaseClass()

static BASE_IMPEXP const mrpt::utils::TRuntimeClassId * mrpt::math::CMatrixD::_GetBaseClass ( )
staticprotected

◆ Create()

static BASE_IMPEXP CMatrixDPtr mrpt::math::CMatrixD::Create ( )
static

◆ CreateObject()

static BASE_IMPEXP mrpt::utils::CObject * mrpt::math::CMatrixD::CreateObject ( )
static

◆ duplicate()

virtual BASE_IMPEXP mrpt::utils::CObject * mrpt::math::CMatrixD::duplicate ( ) const
virtual

◆ GetRuntimeClass()

virtual BASE_IMPEXP const mrpt::utils::TRuntimeClassId * mrpt::math::CMatrixD::GetRuntimeClass ( ) const
virtual

◆ operator!=()

bool mrpt::math::CMatrixTemplateNumeric< double >::operator!= ( const Eigen::MatrixBase< Derived > &  m2) const
inlineinherited

!= 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.

◆ operator=()

template<typename OtherDerived >
CMatrixD & mrpt::math::CMatrixD::operator= ( const Eigen::MatrixBase< OtherDerived > &  other)
inline

Assignment operator from any other Eigen class

Definition at line 54 of file CMatrixD.h.

References mrpt::math::CMatrixTemplateNumeric< T >::operator=().

◆ operator==()

bool mrpt::math::CMatrixTemplateNumeric< double >::operator== ( const Eigen::MatrixBase< Derived > &  m2) const
inlineinherited

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

◆ readFromStream()

void BASE_IMPEXP mrpt::math::CMatrixD::readFromStream ( mrpt::utils::CStream in,
int  version 
)
protected

◆ writeToStream()

void BASE_IMPEXP mrpt::math::CMatrixD::writeToStream ( mrpt::utils::CStream out,
int *  getVersion 
) const
protected

Member Data Documentation

◆ _init_CMatrixD

BASE_IMPEXP mrpt::utils::CLASSINIT mrpt::math::CMatrixD::_init_CMatrixD
staticprotected

Definition at line 33 of file CMatrixD.h.

◆ classCMatrixD

BASE_IMPEXP mrpt::utils::TRuntimeClassId mrpt::math::CMatrixD::classCMatrixD
static

Definition at line 33 of file CMatrixD.h.

◆ classinfo

BASE_IMPEXP const mrpt::utils::TRuntimeClassId* mrpt::math::CMatrixD::classinfo
static

Definition at line 33 of file CMatrixD.h.




Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Fri Jan 20 00:45:34 UTC 2023