Main MRPT website > C++ reference
MRPT logo
Namespaces | Enumerations | Functions
mrpt::mrpt::math Namespace Reference

Namespaces

namespace  detail
 

Enumerations

enum  TMatrixTextFileFormat {
  MATRIX_FORMAT_ENG = 0, MATRIX_FORMAT_FIXED = 1, MATRIX_FORMAT_INT = 2, MATRIX_FORMAT_ENG = 0,
  MATRIX_FORMAT_FIXED = 1, MATRIX_FORMAT_INT = 2
}
 
enum  TConstructorFlags_Matrices { UNINITIALIZED_MATRIX = 0, UNINITIALIZED_MATRIX = 0 }
 For usage in one of the constructors of CMatrixFixedNumeric or CMatrixTemplate (and derived classes), if it's not required to fill it with zeros at the constructor to save time. More...
 
enum  TMatrixTextFileFormat {
  MATRIX_FORMAT_ENG = 0, MATRIX_FORMAT_FIXED = 1, MATRIX_FORMAT_INT = 2, MATRIX_FORMAT_ENG = 0,
  MATRIX_FORMAT_FIXED = 1, MATRIX_FORMAT_INT = 2
}
 
enum  TConstructorFlags_Matrices { UNINITIALIZED_MATRIX = 0, UNINITIALIZED_MATRIX = 0 }
 For usage in one of the constructors of CMatrixFixedNumeric or CMatrixTemplate (and derived classes), if it's not required to fill it with zeros at the constructor to save time. More...
 

Functions

template<class CONTAINER1 , class CONTAINER2 >
void cumsum (const CONTAINER1 &in_data, CONTAINER2 &out_cumsum)
 Computes the cumulative sum of all the elements, saving the result in another container.
 
template<class CONTAINER >
CONTAINER::value_type norm (const CONTAINER &v)
 
template<class CONTAINER >
CONTAINER::value_type norm_inf (const CONTAINER &v)
 
template<class MAT_A , class SKEW_3VECTOR , class MAT_OUT >
void multiply_A_skew3 (const MAT_A &A, const SKEW_3VECTOR &v, MAT_OUT &out)
 Only for vectors/arrays "v" of length3, compute out = A * Skew(v), where Skew(v) is the skew symmetric matric generated from v (see mrpt::math::skew_symmetric3)
 
template<class SKEW_3VECTOR , class MAT_A , class MAT_OUT >
void multiply_skew3_A (const SKEW_3VECTOR &v, const MAT_A &A, MAT_OUT &out)
 Only for vectors/arrays "v" of length3, compute out = Skew(v) * A, where Skew(v) is the skew symmetric matric generated from v (see mrpt::math::skew_symmetric3)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const TPoint2D &p)
 Conversion of poses to MRPT containers (vector/matrix)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const TPoint3D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const TPose2D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const TPose3D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const TPose3DQuat &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const mrpt::poses::CPoint2D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const mrpt::poses::CPoint3D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const mrpt::poses::CPose2D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const mrpt::poses::CPose3D &p)
 
template<class CONTAINER >
CONTAINER & containerFromPoseOrPoint (CONTAINER &C, const mrpt::poses::CPose3DQuat &p)
 
template<class T >
wrapTo2Pi (T a)
 Modifies the given angle to translate it into the [0,2pi[ range.
 
bool BASE_IMPEXP isNaN (float v) MRPT_NO_THROWS
 
bool BASE_IMPEXP isNaN (double v) MRPT_NO_THROWS
 
bool BASE_IMPEXP isFinite (float v) MRPT_NO_THROWS
 
bool BASE_IMPEXP isFinite (double v) MRPT_NO_THROWS
 
template<class MATRIXLIKE >
size_t size (const MATRIXLIKE &m, int dim)
 

Enumeration Type Documentation

For usage in one of the constructors of CMatrixFixedNumeric or CMatrixTemplate (and derived classes), if it's not required to fill it with zeros at the constructor to save time.

Enumerator
UNINITIALIZED_MATRIX 
UNINITIALIZED_MATRIX 

Definition at line 100 of file CColouredPointsMap.h.

For usage in one of the constructors of CMatrixFixedNumeric or CMatrixTemplate (and derived classes), if it's not required to fill it with zeros at the constructor to save time.

Enumerator
UNINITIALIZED_MATRIX 
UNINITIALIZED_MATRIX 

Definition at line 100 of file CColouredPointsMap.h.

Selection of the number format in CMatrixTemplate::saveToTextFile

Enumerator
MATRIX_FORMAT_ENG 

engineering format 'e'

MATRIX_FORMAT_FIXED 

fixed floating point 'f'

MATRIX_FORMAT_INT 

intergers 'i'

MATRIX_FORMAT_ENG 

engineering format 'e'

MATRIX_FORMAT_FIXED 

fixed floating point 'f'

MATRIX_FORMAT_INT 

intergers 'i'

Definition at line 91 of file CColouredPointsMap.h.

Selection of the number format in CMatrixTemplate::saveToTextFile

Enumerator
MATRIX_FORMAT_ENG 

engineering format 'e'

MATRIX_FORMAT_FIXED 

fixed floating point 'f'

MATRIX_FORMAT_INT 

intergers 'i'

MATRIX_FORMAT_ENG 

engineering format 'e'

MATRIX_FORMAT_FIXED 

fixed floating point 'f'

MATRIX_FORMAT_INT 

intergers 'i'

Definition at line 91 of file CColouredPointsMap.h.

Function Documentation

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const TPoint2D &  p 
)

Conversion of poses to MRPT containers (vector/matrix)

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const TPoint3D &  p 
)
template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const TPose2D &  p 
)
template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const TPose3D &  p 
)
template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const TPose3DQuat &  p 
)
template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const mrpt::poses::CPoint2D p 
)
inline

Definition at line 154 of file CColouredPointsMap.h.

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const mrpt::poses::CPoint3D p 
)
inline

Definition at line 155 of file CColouredPointsMap.h.

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const mrpt::poses::CPose2D p 
)
inline

Definition at line 156 of file CColouredPointsMap.h.

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const mrpt::poses::CPose3D p 
)
inline

Definition at line 157 of file CColouredPointsMap.h.

template<class CONTAINER >
CONTAINER & mrpt::mrpt::math::containerFromPoseOrPoint ( CONTAINER &  C,
const mrpt::poses::CPose3DQuat p 
)
inline

Definition at line 158 of file CColouredPointsMap.h.

template<class CONTAINER1 , class CONTAINER2 >
void mrpt::mrpt::math::cumsum ( const CONTAINER1 &  in_data,
CONTAINER2 &  out_cumsum 
)
inline

Computes the cumulative sum of all the elements, saving the result in another container.

This works for both matrices (even mixing their types) and vectores/arrays (even mixing types), and even to store the cumsum of any matrix into any vector/array, but not in opposite direction.

See Also
sum

Definition at line 95 of file ops_containers.h.

Referenced by mrpt::math::confidenceIntervals(), and mrpt::math::cumsum().

bool BASE_IMPEXP mrpt::mrpt::math::isFinite ( float  v)
bool BASE_IMPEXP mrpt::mrpt::math::isFinite ( double  v)
bool BASE_IMPEXP mrpt::mrpt::math::isNaN ( float  v)
bool BASE_IMPEXP mrpt::mrpt::math::isNaN ( double  v)
template<class MAT_A , class SKEW_3VECTOR , class MAT_OUT >
void mrpt::mrpt::math::multiply_A_skew3 ( const MAT_A &  A,
const SKEW_3VECTOR &  v,
MAT_OUT &  out 
)

Only for vectors/arrays "v" of length3, compute out = A * Skew(v), where Skew(v) is the skew symmetric matric generated from v (see mrpt::math::skew_symmetric3)

Definition at line 248 of file ops_matrices.h.

References ASSERT_EQUAL_, MRPT_END, MRPT_START, and mrpt::math::size().

Referenced by multiply_A_skew3().

template<class SKEW_3VECTOR , class MAT_A , class MAT_OUT >
void mrpt::mrpt::math::multiply_skew3_A ( const SKEW_3VECTOR &  v,
const MAT_A &  A,
MAT_OUT &  out 
)

Only for vectors/arrays "v" of length3, compute out = Skew(v) * A, where Skew(v) is the skew symmetric matric generated from v (see mrpt::math::skew_symmetric3)

Definition at line 267 of file ops_matrices.h.

References ASSERT_EQUAL_, MRPT_END, MRPT_START, and mrpt::math::size().

Referenced by multiply_skew3_A().

template<class CONTAINER >
CONTAINER::value_type mrpt::mrpt::math::norm ( const CONTAINER &  v)
inline
template<class CONTAINER >
CONTAINER::value_type mrpt::mrpt::math::norm_inf ( const CONTAINER &  v)
inline
template<class MATRIXLIKE >
size_t mrpt::mrpt::math::size ( const MATRIXLIKE &  m,
int  dim 
)
inline

Returns the size of the matrix in the i'th dimension: 1=rows, 2=columns (MATLAB-compatible function)

Note
Template argument MATRIXLIKE can be: CMatrixTemplate, CMatrixTemplateNumeric, CMatrixFixedNumeric

Definition at line 65 of file CColouredPointsMap.h.

Referenced by mrpt::poses::CPose3D::CPose3D(), mrpt::poses::CPoint< CPoint3D >::fromString(), mrpt::poses::CPose2D::fromString(), mrpt::poses::CPose3DQuat::fromString(), mrpt::poses::CPose3DRotVec::fromString(), and mrpt::poses::CPose3D::fromString().




Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013