MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
scalar.hpp File Reference
#include <concepts>
#include <type_traits>
#include <complex>
#include <limits>
#include <mtl/concepts/magnitude.hpp>

Classes

struct  mtl::is_complex< T >
 Detect std::complex specializations. More...
struct  mtl::is_complex< std::complex< T > >

Namespaces

namespace  mtl

Concepts

concept  mtl::HasNumericLimits
 The number system describes itself through std::numeric_limits (#838): its epsilon, range, infinities and NaNs.
concept  mtl::Scalar
 A type that behaves like a scalar value (arithmetic or custom number type), and describes itself through std::numeric_limits.
concept  mtl::Field
 A type that forms a mathematical field: division is defined AND invertible.
concept  mtl::OrderedField
 An ordered field (field with comparison operators).

Variables

template<typename T>
constexpr bool mtl::is_complex_v = is_complex<std::remove_cv_t<T>>::value
 Whether T is a std::complex, cv-qualifiers ignored (#838).