#include <cstddef>
#include <complex>
Go to the source code of this file.
|
template<class T > |
bool | check_real (T x) |
|
template<class T > |
bool | check_real (std::complex< T > x) |
|
template<class InputIterator , class Predicate > |
bool | all_true (InputIterator first, InputIterator last, Predicate pred) |
|
template<class InputIterator , class Predicate >
bool all_true |
( |
InputIterator |
first, |
|
|
InputIterator |
last, |
|
|
Predicate |
pred |
|
) |
| |
Definition at line 53 of file utils.hpp.
56 while (allTrue && first != last)
57 allTrue = pred(*first++);
template<class T >
bool check_real |
( |
std::complex< T > |
x | ) |
|
Definition at line 46 of file utils.hpp.
48 return std::imag(x)/
std::real(x) < 1e-14 || std::imag(x) < 1e-14;
alps::numeric::real_type< T >::type real(T f)