MRPT logo

CMatrixTemplateNumeric.h File Reference

#include <mrpt/math/CMatrixTemplate.h>
#include <mrpt/system/os.h>
#include <cmath>
#include <limits>

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

Namespaces

namespace  mrpt
 The main namespace for all the Mobile Robot Programming Toolkit (MRPT) C++ libraries.
namespace  mrpt::math
 This base provides a set of functions for maths stuff.

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

Enumerations

enum  mrpt::math::TMatrixTextFileFormat { mrpt::math::MATRIX_FORMAT_ENG = 0, mrpt::math::MATRIX_FORMAT_FIXED = 1, mrpt::math::MATRIX_FORMAT_INT = 2 }
 Selection of the number format in CMatrixTemplateNumeric::saveToTextFile. More...

Functions

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.


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




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:19:01 EST 2009