Classes | |
struct | round |
struct | round_sat_ |
Enumerations | |
enum | sign_t { negative = -1, null = 0, positive = +1 } |
Functions | |
template<unsigned n> | |
value::int_u< n > | abs (const value::int_u< n > &v) |
Specialization for mln::value::int_u. | |
template<typename T> | |
T | abs (const T &v) |
Generic version. | |
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) |
long double | abs (long double v) |
double | abs (double v) |
float | abs (float v) |
long | abs (long v) |
int | abs (int v) |
Specializations for existing overloads of std::abs. | |
Variables | |
const double | pi = 3.1415926535897932385 |
enum mln::math::sign_t |
value::int_u< n > mln::math::abs | ( | const value::int_u< n > & | v | ) | [inline] |
long double mln::math::abs | ( | long double | v | ) | [inline] |
Definition at line 84 of file math/abs.hh.
double mln::math::abs | ( | double | v | ) | [inline] |
Definition at line 83 of file math/abs.hh.
float mln::math::abs | ( | float | v | ) | [inline] |
Definition at line 82 of file math/abs.hh.
long mln::math::abs | ( | long | v | ) | [inline] |
Definition at line 80 of file math/abs.hh.
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.
T mln::math::abs | ( | const T & | v | ) | [inline] |
Generic version.
Definition at line 74 of file math/abs.hh.
Referenced by mln::algebra::about_equal(), 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().
T mln::math::acos | ( | const T & | v | ) | [inline] |
Definition at line 51 of file acos.hh.
Referenced by mln::fun::v2w2v::cos< V >::f_1(), and mln::trait::next::set_unary_< mln::fun::cos, mln::value::Floating, T >::write().
T mln::math::cos | ( | const T & | v | ) | [inline] |
T mln::math::diff_abs | ( | const T & | v1, | |
const T & | v2 | |||
) | [inline] |
Definition at line 48 of file math/diff_abs.hh.
Referenced by mln::dist::operator()(), mln::fun::vv2v::diff_abs< V >::operator()(), mln::morpho::attribute::volume< I >::take(), mln::accu::shape::volume< I >::take(), and mln::morpho::attribute::height< I >::to_result().
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(), and mln::literal::zero.
Referenced by mln::registration::get_rot().
T mln::math::max | ( | const T & | v1, | |
const T & | v2 | |||
) | [inline] |
Definition at line 49 of file math/max.hh.
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().
T mln::math::min | ( | const T & | v1, | |
const T & | v2 | |||
) | [inline] |
Definition at line 49 of file math/min.hh.
Referenced by mln::p_line2d::compute_(), mln::fun::v2v::f_rgb_to_hsl_< T_hsl >::operator()(), mln::fun::vv2v::min< L, R >::operator()(), mln::trait::next::set_binary_< mln::fun::inf, mln::Object, T1, mln::Object, T2 >::read(), mln::morpho::attribute::height< I >::take(), and mln::accu::shape::height< I >::take().
sign_t mln::math::sign | ( | const T & | v | ) | [inline] |
Definition at line 57 of file math/sign.hh.
References negative, null, and positive.
Referenced by mln::p_line2d::compute_().
T mln::math::sin | ( | const T & | v | ) | [inline] |
T mln::math::sqr | ( | const T & | v | ) | [inline] |
Definition at line 51 of file sqr.hh.
Referenced by mln::norm::impl::l2_(), mln::norm::impl::l2_distance_(), mln::norm::impl::sqr_l2_(), and mln::accu::stat::deviation< T, S, M >::take().
T mln::math::sqrt | ( | const T & | v | ) | [inline] |
Definition at line 51 of file math/sqrt.hh.
Referenced by mln::norm::impl::l2_(), mln::norm::impl::l2_distance_(), and mln::accu::stat::deviation< T, S, M >::to_result().
const double mln::math::pi = 3.1415926535897932385 |
Definition at line 39 of file pi.hh.
Referenced by mln::geom::rotate(), and mln::transform::internal::to_radians().