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 > |
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 > |
T | acos (const T &v) |
template<typename T > |
T | cos (const T &v) |
template<typename T > |
T | diff_abs (const T &v1, const T &v2) |
algebra::quat | jacobi (algebra::mat< 4u, 4u, float > a) |
template<typename T > |
T | max (const T &v1, const T &v2) |
template<typename T > |
T | min (const T &v1, const T &v2) |
template<typename T > |
sign_t | sign (const T &v) |
template<typename T > |
T | sin (const T &v) |
template<typename T > |
T | sqr (const T &v) |
template<typename T > |
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
Function Documentation
template<typename T >
T mln::math::abs |
( |
const T & |
v |
) |
[inline] |
Generic version.
Referenced by mln::algebra::about_equal(), abs(), test::check_distance(), test::check_norm(), mln::p_line2d::compute_(), mln::norm::impl::l1_(), mln::norm::impl::l1_distance_(), mln::morpho::line_gradient(), mln::norm::impl::linfty_(), mln::norm::impl::linfty_distance_(), mln::myfun::operator()(), mln::fun::x2v::l1_norm< V >::operator()(), mln::fun::v2v::abs< V >::operator()(), and mln::trait::next::set_unary_< mln::fun::abs, mln::value::Scalar, T >::read().
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]).
References abs().
float mln::math::abs |
( |
float |
v |
) |
[inline] |
double mln::math::abs |
( |
double |
v |
) |
[inline] |
long mln::math::abs |
( |
long |
v |
) |
[inline] |
long double mln::math::abs |
( |
long double |
v |
) |
[inline] |
template<unsigned n>
value::int_u< n > mln::math::abs |
( |
const value::int_u< n > & |
v |
) |
[inline] |
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 |
) |
|
template<typename T >
T mln::math::max |
( |
const T & |
v1, |
|
|
const T & |
v2 | |
|
) |
| | [inline] |
Referenced by mln::p_line2d::compute_(), mln::fun::v2v::f_rgb_to_hsl_< T_hsl >::operator()(), mln::fun::vv2v::max< V >::operator()(), mln::trait::next::set_binary_< mln::fun::sup, mln::Object, T1, mln::Object, T2 >::read(), mln::accu::label_used< L >::take(), mln::morpho::attribute::height< I >::take(), and mln::accu::shape::height< I >::take().
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] |
template<typename T >
T mln::math::sin |
( |
const T & |
v |
) |
[inline] |
template<typename T >
T mln::math::sqr |
( |
const T & |
v |
) |
[inline] |
template<typename T >
T mln::math::sqrt |
( |
const T & |
v |
) |
[inline] |
Variable Documentation