Namespace of mathematical routines. More...
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. | |
int | abs (int v) |
Specializations for existing overloads of std::abs. |
Namespace of mathematical routines.
T mln::math::abs | ( | const T & | v | ) | [inline] |
Generic version.
Definition at line 74 of file math/abs.hh.
Referenced by abs(), and mln::morpho::line_gradient().
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().
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.