Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Functions
mrpt::math::detail Namespace Reference

Classes

class  AccessorIterator
 Template class for matrix accessor's iterators. More...
 
struct  getVicinity
 This huge template encapsulates a function to get the vicinity of an element, with maximum genericity. More...
 
class  MatrixWrapper
 This template is a trick to switch the type of a variable using a boolean variable in the template. More...
 
class  MatrixWrapper< U, false >
 
class  MatrixWrapper< U, true >
 
class  ReverseAccessorIterator
 Template class for matrix accessor's iterators. More...
 
struct  TAuxResizer
 Internal resize which compiles to nothing on fixed-size matrices. More...
 
struct  TAuxResizer< MAT, -1 >
 
class  VicinityTraits
 The purpose of this class is to model traits for containers, so that they can be used as return values for the function CMatrixTemplate::getVicinity. More...
 
class  VicinityTraits< CMatrixFixedNumeric< T, D, D > >
 Vicinity traits class specialization for fixed size matrices. More...
 
class  VicinityTraits< CMatrixTemplateNumeric< T > >
 Vicinity traits class specialization for fixed size matrices. More...
 

Functions

template<typename T , typename U , bool UIsObject, typename FunctionType >
void applyFunction (CBinaryRelation< T, U, UIsObject > &o, FunctionType fun, size_t e1, size_t e2, const T &T1, const T &T2)
 
template<typename T , typename U , bool UIsObject>
void applyFunction (CBinaryRelation< T, U, UIsObject > &o, typename CBinaryRelation< T, U, UIsObject >::FunctionByReferencePass fun, size_t e1, size_t e2, const T &T1, const T &T2)
 Template specialization by reference type. More...
 
template<typename SCALAR >
double internal_kmeans (const bool use_kmeansplusplus_method, const size_t nPoints, const size_t k, const size_t dims, const SCALAR *points, const size_t attempts, SCALAR *out_center, int *out_assignments)
 
template<class LIST_OF_VECTORS1 , class LIST_OF_VECTORS2 >
double stub_kmeans (const bool use_kmeansplusplus_method, const size_t k, const LIST_OF_VECTORS1 &points, std::vector< int > &assignments, LIST_OF_VECTORS2 *out_centers, const size_t attempts)
 
TPoint2D lightFromPose (const mrpt::poses::CPoint2D &p)
 Convert a pose into a light-weight structure (functional form, needed for forward declarations) More...
 
TPoint3D lightFromPose (const mrpt::poses::CPoint3D &p)
 Convert a pose into a light-weight structure (functional form, needed for forward declarations) More...
 
TPose2D lightFromPose (const mrpt::poses::CPose2D &p)
 Convert a pose into a light-weight structure (functional form, needed for forward declarations) More...
 
TPose3D lightFromPose (const mrpt::poses::CPose3D &p)
 Convert a pose into a light-weight structure (functional form, needed for forward declarations) More...
 
TPose3DQuat lightFromPose (const mrpt::poses::CPose3DQuat &p)
 Convert a pose into a light-weight structure (functional form, needed for forward declarations) More...
 
template<class MATORG , class MATDEST >
void extractMatrix (const MATORG &M, const size_t first_row, const size_t first_col, MATDEST &outMat)
 Extract a submatrix - The output matrix must be set to the required size before call. More...
 
template<>
double internal_kmeans< double > (const bool use_kmeansplusplus_method, const size_t nPoints, const size_t k, const size_t dims, const double *points, const size_t attempts, double *out_center, int *out_assignments)
 
template<>
double internal_kmeans< float > (const bool use_kmeansplusplus_method, const size_t nPoints, const size_t k, const size_t dims, const float *points, const size_t attempts, float *out_center, int *out_assignments)
 

Function Documentation

◆ applyFunction() [1/2]

template<typename T , typename U , bool UIsObject, typename FunctionType >
void mrpt::math::detail::applyFunction ( CBinaryRelation< T, U, UIsObject > &  o,
FunctionType  fun,
size_t  e1,
size_t  e2,
const T &  T1,
const T &  T2 
)
inline

Definition at line 563 of file CBinaryRelation.h.

References mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationValue().

Here is the call graph for this function:

◆ applyFunction() [2/2]

template<typename T , typename U , bool UIsObject>
void mrpt::math::detail::applyFunction ( CBinaryRelation< T, U, UIsObject > &  o,
typename CBinaryRelation< T, U, UIsObject >::FunctionByReferencePass  fun,
size_t  e1,
size_t  e2,
const T &  T1,
const T &  T2 
)
inline

Template specialization by reference type.

Definition at line 573 of file CBinaryRelation.h.

References mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationValue().

Here is the call graph for this function:

◆ extractMatrix()

template<class MATORG , class MATDEST >
void mrpt::math::detail::extractMatrix ( const MATORG &  M,
const size_t  first_row,
const size_t  first_col,
MATDEST &  outMat 
)

Extract a submatrix - The output matrix must be set to the required size before call.

Definition at line 215 of file ops_matrices.h.

References ASSERT_BELOWEQ_.

Referenced by mrpt::math::CMatrixTemplate< mrpt::math::TPoint3D >::extractColumns(), and mrpt::math::CMatrixTemplate< mrpt::math::TPoint3D >::extractRows().

Here is the caller graph for this function:

◆ internal_kmeans()

template<typename SCALAR >
double mrpt::math::detail::internal_kmeans ( const bool  use_kmeansplusplus_method,
const size_t  nPoints,
const size_t  k,
const size_t  dims,
const SCALAR *  points,
const size_t  attempts,
SCALAR *  out_center,
int *  out_assignments 
)

Referenced by stub_kmeans().

Here is the caller graph for this function:

◆ internal_kmeans< double >()

template<>
double mrpt::math::detail::internal_kmeans< double > ( const bool  use_kmeansplusplus_method,
const size_t  nPoints,
const size_t  k,
const size_t  dims,
const double *  points,
const size_t  attempts,
double *  out_center,
int *  out_assignments 
)

Definition at line 35 of file KMeans.cpp.

References MRPT_UNUSED_PARAM, and RunKMeans().

Here is the call graph for this function:

◆ internal_kmeans< float >()

template<>
double mrpt::math::detail::internal_kmeans< float > ( const bool  use_kmeansplusplus_method,
const size_t  nPoints,
const size_t  k,
const size_t  dims,
const float *  points,
const size_t  attempts,
float *  out_center,
int *  out_assignments 
)

Definition at line 47 of file KMeans.cpp.

References MRPT_UNUSED_PARAM, and RunKMeans().

Here is the call graph for this function:

◆ lightFromPose() [1/5]

TPoint2D mrpt::math::detail::lightFromPose ( const mrpt::poses::CPoint2D p)

Convert a pose into a light-weight structure (functional form, needed for forward declarations)

Definition at line 36 of file lightweight_geom_data.cpp.

◆ lightFromPose() [2/5]

TPoint3D mrpt::math::detail::lightFromPose ( const mrpt::poses::CPoint3D p)

Convert a pose into a light-weight structure (functional form, needed for forward declarations)

Definition at line 37 of file lightweight_geom_data.cpp.

◆ lightFromPose() [3/5]

TPose2D mrpt::math::detail::lightFromPose ( const mrpt::poses::CPose2D p)

Convert a pose into a light-weight structure (functional form, needed for forward declarations)

Definition at line 38 of file lightweight_geom_data.cpp.

◆ lightFromPose() [4/5]

TPose3D mrpt::math::detail::lightFromPose ( const mrpt::poses::CPose3D p)

Convert a pose into a light-weight structure (functional form, needed for forward declarations)

Definition at line 39 of file lightweight_geom_data.cpp.

◆ lightFromPose() [5/5]

TPose3DQuat mrpt::math::detail::lightFromPose ( const mrpt::poses::CPose3DQuat p)

Convert a pose into a light-weight structure (functional form, needed for forward declarations)

Definition at line 40 of file lightweight_geom_data.cpp.

◆ stub_kmeans()

template<class LIST_OF_VECTORS1 , class LIST_OF_VECTORS2 >
double mrpt::math::detail::stub_kmeans ( const bool  use_kmeansplusplus_method,
const size_t  k,
const LIST_OF_VECTORS1 &  points,
std::vector< int > &  assignments,
LIST_OF_VECTORS2 *  out_centers,
const size_t  attempts 
)

Definition at line 31 of file include/mrpt/math/kmeans.h.

References ASSERT_, ASSERTMSG_, internal_kmeans(), mrpt::system::os::memcpy(), MRPT_END, MRPT_START, and MRPT_UNUSED_PARAM.

Referenced by mrpt::math::kmeans(), and mrpt::math::kmeanspp().

Here is the call graph for this function:
Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019