SLIP
1.4
|
Provides some mathematical functors and constants. More...
#include <complex>
#include <cstring>
#include <limits>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | slip::un_real< T1, T2 > |
Real functor. Return the real part of x. More... | |
struct | slip::un_imag< T1, T2 > |
Imag functor. Return the imaginary part of x. More... | |
struct | slip::un_abs< T1, T2 > |
Abs functor. Return the absolute value of x. More... | |
struct | slip::less_abs< _Tp > |
Compare two element according to their absolute value. Return true if std::abs(__x) < std::abs( __y). More... | |
struct | slip::greater_abs< _Tp > |
Compare two element according to their absolute value. Return true if std::abs(__x) > std::abs( __y). More... | |
struct | slip::mini< _Tp > |
Computes the minimum value between two values. More... | |
struct | slip::maxi< _Tp > |
Computes the maximum value between two values. More... | |
struct | slip::Sign< T, R > |
struct | slip::complex_sign< Complex > |
struct | slip::gt_it< Iterator > |
struct | slip::lt_it< Iterator > |
struct | slip::constants< _Tp > |
A structure for numeric constants. More... | |
Namespaces | |
slip | |
This namespace corresponds to the kernel of the Simple Library on Image Processing (SLIP). That is to say that it contains the data structures and the algorithms needed by these data strucutres. | |
Functions | |
template<typename T > | |
T | slip::sign (T a) |
Computes the sign of a. More... | |
template<typename Real > | |
Real | slip::pythagore (const Real &x, const Real &y) |
Computes ![]() | |
template<int N, typename T > | |
T | slip::nth_power (T x) |
Computes the nth power of an element ![]() | |
template<typename T , typename Integer > | |
T | slip::power (T x, Integer N) |
function to compute. More... | |
Provides some mathematical functors and constants.
Definition in file macros.hpp.