Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
uni20::numeric_limits< T > Struct Template Reference

#include <numeric_limits.hpp>

Inheritance diagram for uni20::numeric_limits< T >:
[legend]
Collaboration diagram for uni20::numeric_limits< T >:
[legend]

Static Public Member Functions

static constexpr int digits () noexcept
 Fixed significand capacity, also available through an exemplar or precision.
 
static constexpr int digits (Precision p)
 
static constexpr int digits (T const &) noexcept
 
static constexpr int digits10 () noexcept
 Decimal digits preserved by conversion into this native type.
 
static constexpr int digits10 (Precision p)
 
static constexpr int digits10 (T const &) noexcept
 
static constexpr T epsilon (Precision p)
 Spacing above one at this type's precision; reject incompatible requests.
 
template<class U >
requires (std::is_same_v<T, U> && std::numeric_limits<T>::is_specialized)
static constexpr T epsilon (U const &) noexcept
 Spacing above one, accepting an exemplar for scalar-generic code.
 
static constexpr int max_digits10 () noexcept
 Decimal digits sufficient to round-trip a value of this native type.
 
static constexpr int max_digits10 (Precision p)
 
static constexpr int max_digits10 (T const &) noexcept
 

Member Function Documentation

◆ digits() [1/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits ( )
inlinestaticconstexprnoexcept

Fixed significand capacity, also available through an exemplar or precision.

◆ digits() [2/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits ( Precision  p)
inlinestaticconstexpr

◆ digits() [3/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits ( T const &  )
inlinestaticconstexprnoexcept

◆ digits10() [1/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits10 ( )
inlinestaticconstexprnoexcept

Decimal digits preserved by conversion into this native type.

◆ digits10() [2/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits10 ( Precision  p)
inlinestaticconstexpr

◆ digits10() [3/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::digits10 ( T const &  )
inlinestaticconstexprnoexcept

◆ epsilon() [1/2]

template<typename T >
static constexpr T uni20::numeric_limits< T >::epsilon ( Precision  p)
inlinestaticconstexpr

Spacing above one at this type's precision; reject incompatible requests.

◆ epsilon() [2/2]

template<typename T >
template<class U >
requires (std::is_same_v<T, U> && std::numeric_limits<T>::is_specialized)
static constexpr T uni20::numeric_limits< T >::epsilon ( U const &  )
inlinestaticconstexprnoexcept

Spacing above one, accepting an exemplar for scalar-generic code.

◆ max_digits10() [1/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::max_digits10 ( )
inlinestaticconstexprnoexcept

Decimal digits sufficient to round-trip a value of this native type.

◆ max_digits10() [2/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::max_digits10 ( Precision  p)
inlinestaticconstexpr

◆ max_digits10() [3/3]

template<typename T >
static constexpr int uni20::numeric_limits< T >::max_digits10 ( T const &  )
inlinestaticconstexprnoexcept

The documentation for this struct was generated from the following file: