<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::concepts::Real Concept Reference

Concept definition

template<typename T>
concept tlapack::concepts::Real = Arithmetic<T>&& std::totally_ordered<T>&&
std::numeric_limits<T>::is_specialized&& requires(const T& a, T& b)
{
T();
T(0);
T(0.0);
b = a;
{
isinf(a)
}
->std::same_as<bool>;
{
isnan(a)
}
->std::same_as<bool>;
abs(a);
sqrt(a);
pow(2, a);
log2(a);
ceil(a);
floor(a);
min(a, b);
max(a, b);
}
constexpr bool isnan(const T &x) noexcept
Extends std::isnan() to complex numbers.
Definition utils.hpp:125
constexpr bool isinf(const T &x) noexcept
Extends std::isinf() to complex numbers.
Definition utils.hpp:117
Definition concepts.hpp:54
Definition concepts.hpp:105
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113