ALPSCore reference
Classes | Namespaces | Macros
inf.hpp File Reference
#include <alps/utilities/type_wrapper.hpp>
#include <limits>
Include dependency graph for inf.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  alps::numeric::inf< T >
 
struct  alps::numeric::inf< float >
 Class convertible to infinity of type float. More...
 
struct  alps::numeric::inf< double >
 Class convertible to infinity of type double. More...
 

Namespaces

 alps
 
 alps::numeric
 

Macros

#define ALPS_NUMERIC_INF_OVERLOADS(T)
 

Macro Definition Documentation

#define ALPS_NUMERIC_INF_OVERLOADS (   T)
Value:
\
template<> struct inf< T > { \ \
inf<T>(const T&) {} \
\ \
operator T () const { \
return std::numeric_limits< T >::infinity(); \
} \
};

Definition at line 19 of file inf.hpp.