Classes | Enumerations | Functions | Variables

mln::math Namespace Reference

Namespace of mathematical routines. More...

Classes

struct  round
struct  round_sat_

Enumerations

enum  sign_t { negative = -1, null = 0, positive = +1 }

Functions

template<typename T >
abs (const T &v)
 Generic version.
template<unsigned n>
value::int_u< n > abs (const value::int_u< n > &v)
 Specialization for mln::value::int_u.
template<typename T >
acos (const T &v)
template<typename T >
cos (const T &v)
template<typename T >
diff_abs (const T &v1, const T &v2)
algebra::quat jacobi (algebra::mat< 4u, 4u, float > a)
template<typename T >
max (const T &v1, const T &v2)
template<typename T >
min (const T &v1, const T &v2)
template<typename T >
sign_t sign (const T &v)
template<typename T >
sin (const T &v)
template<typename T >
sqr (const T &v)
template<typename T >
sqrt (const T &v)

int abs (int v)
 Specializations for existing overloads of std::abs.
long abs (long v)
float abs (float v)
double abs (double v)
long double abs (long double v)

Variables

const double pi = 3.1415926535897932385

Detailed Description

Namespace of mathematical routines.


Enumeration Type Documentation

Enumerator:
negative 
null 
positive 

Definition at line 41 of file math/sign.hh.


Function Documentation

template<typename T >
T mln::math::abs ( const T &  v  )  [inline]
int mln::math::abs ( int  v  )  [inline]

Specializations for existing overloads of std::abs.

Reference: ISO/IEC 14882:2003 C++ standard, section 26.5 (C Library, [lib.c.math]).

Definition at line 79 of file math/abs.hh.

References abs().

float mln::math::abs ( float  v  )  [inline]

Definition at line 82 of file math/abs.hh.

References abs().

double mln::math::abs ( double  v  )  [inline]

Definition at line 83 of file math/abs.hh.

References abs().

long mln::math::abs ( long  v  )  [inline]

Definition at line 80 of file math/abs.hh.

References abs().

long double mln::math::abs ( long double  v  )  [inline]

Definition at line 84 of file math/abs.hh.

References abs().

template<unsigned n>
value::int_u< n > mln::math::abs ( const value::int_u< n > &  v  )  [inline]

Specialization for mln::value::int_u.

Definition at line 88 of file math/abs.hh.

template<typename T >
T mln::math::acos ( const T &  v  )  [inline]
template<typename T >
T mln::math::cos ( const T &  v  )  [inline]
template<typename T >
T mln::math::diff_abs ( const T &  v1,
const T &  v2 
) [inline]
algebra::quat mln::math::jacobi ( algebra::mat< 4u, 4u, float >  a  ) 

Definition at line 58 of file jacobi.hh.

References mln::algebra::quat::set_unit(), sqrt(), and mln::literal::zero.

Referenced by mln::registration::get_rot().

template<typename T >
T mln::math::max ( const T &  v1,
const T &  v2 
) [inline]
template<typename T >
T mln::math::min ( const T &  v1,
const T &  v2 
) [inline]
template<typename T >
sign_t mln::math::sign ( const T &  v  )  [inline]

Definition at line 57 of file math/sign.hh.

References negative, and positive.

Referenced by mln::p_line2d::compute_().

template<typename T >
T mln::math::sin ( const T &  v  )  [inline]

Definition at line 50 of file sin.hh.

Referenced by mln::transform::hough().

template<typename T >
T mln::math::sqr ( const T &  v  )  [inline]
template<typename T >
T mln::math::sqrt ( const T &  v  )  [inline]

Variable Documentation

const double mln::math::pi = 3.1415926535897932385

Definition at line 42 of file pi.hh.

Referenced by mln::geom::rotate(), and mln::transform::internal::to_radians().