liballofw
Namespaces | Functions | Variables
basic.h File Reference
#include "../common.h"
#include <cmath>
#include <limits>

Go to the source code of this file.

Namespaces

 allofw
 

Functions

template<typename number_t >
number_t allofw::min (number_t a, number_t b)
 Compute minimum. More...
 
template<typename number_t >
number_t allofw::max (number_t a, number_t b)
 Compute maximum. More...
 
template<typename number_t >
number_t allofw::abs (number_t a)
 Compute absolute value. More...
 
template<typename number_t >
number_t allofw::sign (number_t a)
 Compute sign of a number. More...
 

Variables

const double allofw::PI = 3.1415926535897932384626433832795028841971693993751
 
const double allofw::E = 2.7182818284590452353602874713526624977572470937000
 
const double allofw::NaN = std::numeric_limits<double>::quiet_NaN()
 
const double allofw::Infinity = std::numeric_limits<double>::infinity()