SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
macros.hpp File Reference

Provides some mathematical functors and constants. More...

#include <complex>
#include <cstring>
#include <limits>
#include <cmath>
Include dependency graph for macros.hpp:
This graph shows which files directly or indirectly include this file:

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 >
slip::sign (T a)
 Computes the sign of a. More...
 
template<typename Real >
Real slip::pythagore (const Real &x, const Real &y)
 Computes $ (x^2+y^2)^\frac{1}{2}$ without destructive underflow or overflow. More...
 
template<int N, typename T >
slip::nth_power (T x)
 Computes the nth power of an element $ x^n$. More...
 
template<typename T , typename Integer >
slip::power (T x, Integer N)
 function to compute. More...
 

Detailed Description

Provides some mathematical functors and constants.

Definition in file macros.hpp.