Developer documentation
Version 3.0.3-105-gd3941f44
Elementary Functions

Functions

template<typename T >
constexpr T MR::Math::pow2 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow3 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow4 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow5 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow6 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow7 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow8 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow9 (const T &v)
 
template<typename T >
constexpr T MR::Math::pow10 (const T &v)
 
template<typename I , typename T >
constexpr I MR::Math::round (const T x) throw ()
 
template<typename I , typename T >
constexpr I MR::Math::floor (const T x) throw ()
 template function with cast to different type More...
 
template<typename I , typename T >
constexpr I MR::Math::ceil (const T x) throw ()
 template function with cast to different type More...
 
template<typename Derived >
bool MR::is_finite (const Eigen::MatrixBase< Derived > &x)
 check if all elements of an Eigen MatrixBase object are finite More...
 
template<typename Derived >
bool MR::is_nan (const Eigen::MatrixBase< Derived > &x)
 check if all elements of an Eigen MatrixBase object are a number More...
 

Detailed Description

Function Documentation

◆ ceil()

template<typename I , typename T >
constexpr I MR::Math::ceil ( const T  x)
throw (
)
inlineconstexpr

template function with cast to different type

example:

float f = 21.412;
int x = ceil<int> (f);

Definition at line 86 of file math.h.

◆ floor()

template<typename I , typename T >
constexpr I MR::Math::floor ( const T  x)
throw (
)
inlineconstexpr

template function with cast to different type

example:

float f = 21.412;
int x = floor<int> (f);

Definition at line 75 of file math.h.

◆ is_finite()

template<typename Derived >
bool MR::is_finite ( const Eigen::MatrixBase< Derived > &  x)
inline

check if all elements of an Eigen MatrixBase object are finite

Definition at line 98 of file math.h.

◆ is_nan()

template<typename Derived >
bool MR::is_nan ( const Eigen::MatrixBase< Derived > &  x)
inline

check if all elements of an Eigen MatrixBase object are a number

Definition at line 105 of file math.h.

◆ pow10()

template<typename T >
constexpr T MR::Math::pow10 ( const T &  v)
inlineconstexpr

Definition at line 61 of file math.h.

◆ pow2()

template<typename T >
constexpr T MR::Math::pow2 ( const T &  v)
inlineconstexpr

Definition at line 53 of file math.h.

◆ pow3()

template<typename T >
constexpr T MR::Math::pow3 ( const T &  v)
inlineconstexpr

Definition at line 54 of file math.h.

◆ pow4()

template<typename T >
constexpr T MR::Math::pow4 ( const T &  v)
inlineconstexpr

Definition at line 55 of file math.h.

◆ pow5()

template<typename T >
constexpr T MR::Math::pow5 ( const T &  v)
inlineconstexpr

Definition at line 56 of file math.h.

◆ pow6()

template<typename T >
constexpr T MR::Math::pow6 ( const T &  v)
inlineconstexpr

Definition at line 57 of file math.h.

◆ pow7()

template<typename T >
constexpr T MR::Math::pow7 ( const T &  v)
inlineconstexpr

Definition at line 58 of file math.h.

◆ pow8()

template<typename T >
constexpr T MR::Math::pow8 ( const T &  v)
inlineconstexpr

Definition at line 59 of file math.h.

◆ pow9()

template<typename T >
constexpr T MR::Math::pow9 ( const T &  v)
inlineconstexpr

Definition at line 60 of file math.h.

◆ round()

template<typename I , typename T >
constexpr I MR::Math::round ( const T  x)
throw (
)
inlineconstexpr

Definition at line 64 of file math.h.