MRPT logo

CMatrixTemplateNumeric.h File Reference

#include <mrpt/math/CMatrixTemplate.h>
#include <mrpt/system/os.h>
#include <cmath>
#include <limits>
Include dependency graph for CMatrixTemplateNumeric.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mrpt::math::CMatrixTemplateNumeric< T >
 This template class extends the class "CMatrixTemplate" with many common operations with numerical matrixes. More...
class  mrpt::math::detail::VicinityTraits< CMatrixTemplateNumeric< T > >
 Vicinity traits class specialization for fixed size matrices. More...

Namespaces

namespace  mrpt
 

This is the global namespace for all Mobile Robot Porgramming Toolkit (MRPT) libraries.


namespace  mrpt::poses
 

Classes for 2D/3D geometry representation, both of single values and probability density distributions (PDFs) in many forms.


namespace  mrpt::math
 

This base provides a set of functions for maths stuff.


namespace  mrpt::math::detail

Defines

#define DEBUG_SAVE_MATRIX(M)
 A useful macro for saving matrixes to a file while debugging.

Typedefs

typedef CMatrixTemplateNumeric
< float > 
mrpt::math::CMatrixFloat
 Declares a matrix of float numbers (non serializable).
typedef CMatrixTemplateNumeric
< double > 
mrpt::math::CMatrixDouble
 Declares a matrix of double numbers (non serializable).
typedef CMatrixTemplateNumeric
< unsigned int > 
mrpt::math::CMatrixUInt
 Declares a matrix of unsigned ints (non serializable).
typedef CMatrixTemplate< bool > mrpt::math::CMatrixBool
 Declares a matrix of booleans (non serializable).
typedef CMatrixTemplateNumeric
< double > 
mrpt::math::CMatrixLongDouble
 Declares a matrix of "long doubles" (non serializable), or of "doubles" if the compiler does not support "long double".

Functions

template<typename T , size_t NROWS, size_t NCOLS>
void mrpt::math::fixedToDynMatrix (const CMatrixFixedNumeric< T, NROWS, NCOLS > &SRC, CMatrixTemplateNumeric< T > &DST)
 Auxiliary function used in the constructor of dyn.
template<typename T , size_t N, size_t M>
CMatrixTemplateNumeric< T > & mrpt::math::add (CMatrixTemplateNumeric< T > &A, const CMatrixFixedNumeric< T, N, M > &B)
template<typename T , size_t N, size_t M>
CMatrixTemplateNumeric< T > & mrpt::math::substract (CMatrixTemplateNumeric< T > &A, const CMatrixFixedNumeric< T, N, M > &B)
template<class MAT_X , class MAT_A , class MAT_OUT >
void mrpt::math::multiplySubMatrix (const MAT_X &X, const MAT_A &A, MAT_OUT &outResult, const size_t &A_cols_offset, const size_t &A_rows_offset, const size_t &A_col_count)
 Matrix multiplication of this matrix with a submatrix of 'A', saving the result in a third matrix.
template<class T >
bool mrpt::math::operator== (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 Logical equal-to operator.
template<class T >
bool mrpt::math::operator!= (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 logical no-equal-to operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator+ (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 binary addition operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator- (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 binary subtraction operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator* (const CMatrixTemplateNumeric< T > &m, const T &no)
 binary scalar multiplication operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator* (const T &no, const CMatrixTemplateNumeric< T > &m)
 binary scalar multiplication operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator* (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 binary matrix multiplication operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator* (const CMatrixTemplateNumeric< T > &m1, const CVectorTemplate< T > &m2)
 Binary matrix multiplication operator, with one matrix being NxM and the second being a column matrix Mx1.
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator/ (const CMatrixTemplateNumeric< T > &m, const T &no)
 binary scalar division operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator/ (const T &no, const CMatrixTemplateNumeric< T > &m)
 binary scalar division operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator/ (const CMatrixTemplateNumeric< T > &m1, const CMatrixTemplateNumeric< T > &m2)
 binary matrix division operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator^ (const CMatrixTemplateNumeric< T > &m, const unsigned int &pow)
 binary power operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator~ (const CMatrixTemplateNumeric< T > &m)
 unary transpose operator
template<class T >
CMatrixTemplateNumeric< T > mrpt::math::operator! (const CMatrixTemplateNumeric< T > &m)
 Unary inversion operator.
template<class T >
T MRPTDLLIMPEXP mrpt::math::multiply_HCHt_scalar (const std::vector< T > &H, const CMatrixTemplateNumeric< T > &C)
 An special case of multiply_HCHt for the case of the resulting matrix being a scalar (that is, a 1x1 matrix) - This method directly returns this as a scalar avoiding the construction of a 1x1 matrix.

Variables

class MRPTDLLIMPEXP mrpt::math::CMatrixTemplateNumeric

Define Documentation

#define DEBUG_SAVE_MATRIX (  ) 
Value:
{ \
                                char auxStr[100]; \
                                os::sprintf(auxStr,99,"%s.txt",#M); \
                                M.saveToTextFile(auxStr); \
                        } \

A useful macro for saving matrixes to a file while debugging.

Definition at line 901 of file CMatrixTemplateNumeric.h.




Page generated by Doxygen 1.6.2 for MRPT 0.8.1 SVN:exported at Mon Feb 15 22:01:07 UTC 2010