Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions
mrpt::math::CMatrixTemplateNumeric Class Reference

Detailed Description

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

#include <mrpt/math/CMatrixTemplateNumeric.h>

Inheritance diagram for mrpt::math::CMatrixTemplateNumeric:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Eigen::Matrix< T,
Eigen::Dynamic, Eigen::Dynamic,
Eigen::AutoAlign|Eigen::RowMajor > 
Base
 Base class typedef.
typedef CMatrixTemplateNumeric< T > mrpt_autotype

Public Member Functions

 CMatrixTemplateNumeric ()
 Default constructor, builds a 1x1 matrix.
 CMatrixTemplateNumeric (TConstructorFlags_Matrices constructor_flag)
 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.

Member Typedef Documentation

Base class typedef.

See also:
PlainObjectBase

Reimplemented from Eigen::Matrix.

Definition at line 73 of file CMatrixTemplateNumeric.h.

Definition at line 74 of file CMatrixTemplateNumeric.h.


Constructor & Destructor Documentation

mrpt::math::CMatrixTemplateNumeric::CMatrixTemplateNumeric ( ) [inline]

Default constructor, builds a 1x1 matrix.

Definition at line 79 of file CMatrixTemplateNumeric.h.

mrpt::math::CMatrixTemplateNumeric::CMatrixTemplateNumeric ( TConstructorFlags_Matrices  constructor_flag) [inline]

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 87 of file CMatrixTemplateNumeric.h.

mrpt::math::CMatrixTemplateNumeric::CMatrixTemplateNumeric ( size_t  row,
size_t  col 
) [inline]

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

Definition at line 90 of file CMatrixTemplateNumeric.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011