#include <cmath>
#include <type_traits>
Go to the source code of this file.
|
template<unsigned int N, class T > |
bool | alps::numeric::is_zero (T x, typename std::enable_if< std::is_arithmetic< T >::value >::type *=0, typename std::enable_if< std::is_float< T >::value >::type *=0) |
| checks if a number is zero in case of a floating point number, absolute values less than epsilon (1e-50 by default) count as zero More...
|
|
template<unsigned int N, class T > |
bool | alps::numeric::is_zero (T x, typename std::enable_if< std::is_arithmetic< T >::value >::type *=0, typename std::enable_if< std::is_integral< T >::value >::type *=0) |
|
template<unsigned int N, class T > |
bool | alps::numeric::is_zero (const T &x, typename std::enable_if<!std::is_arithmetic< T >::value >::type *=0) |
|
template<class T > |
bool | alps::numeric::is_zero (T x, typename std::enable_if< std::is_arithmetic< T >::value >::type *=0, typename std::enable_if< std::is_float< T >::value >::type *=0) |
|
template<class T > |
bool | alps::numeric::is_zero (T x, typename std::enable_if< std::is_arithmetic< T >::value >::type *=0, typename std::enable_if< std::is_integral< T >::value >::type *=0) |
|
template<class T > |
bool | alps::numeric::is_zero (const T &x, typename std::enable_if<!std::is_arithmetic< T >::value >::type *=0) |
|
template<class T > |
bool | alps::numeric::is_zero (const std::complex< T > &x) |
|