10#ifndef TLAPACK_CONSTANTS_HH
11#define TLAPACK_CONSTANTS_HH
31template <TLAPACK_REAL real_t>
34 return std::numeric_limits<real_t>::epsilon();
50template <TLAPACK_REAL real_t>
53 return ulp<real_t>() * std::numeric_limits<real_t>::round_error();
63template <
typename real_t>
66 return std::numeric_limits<real_t>::digits;
76template <TLAPACK_REAL real_t>
79 const int fradix = std::numeric_limits<real_t>::radix;
80 const int expm = std::numeric_limits<real_t>::min_exponent;
81 const int expM = std::numeric_limits<real_t>::max_exponent;
92template <TLAPACK_REAL real_t>
102template <TLAPACK_REAL real_t>
106 const int fradix = std::numeric_limits<real_t>::radix;
107 const int expm = std::numeric_limits<real_t>::min_exponent;
116template <TLAPACK_REAL real_t>
120 const int fradix = std::numeric_limits<real_t>::radix;
121 const int expM = std::numeric_limits<real_t>::max_exponent;
135template <TLAPACK_REAL real_t>
139 const int fradix = std::numeric_limits<real_t>::radix;
140 const int expm = std::numeric_limits<real_t>::min_exponent;
150template <TLAPACK_REAL real_t>
154 const int fradix = std::numeric_limits<real_t>::radix;
155 const int expM = std::numeric_limits<real_t>::max_exponent;
constexpr real_t uroundoff() noexcept
Unit roundoff.
Definition constants.hpp:51
int digits() noexcept
Digits.
Definition constants.hpp:64
constexpr real_t blue_min() noexcept
Blue's min constant b for the sum of squares.
Definition constants.hpp:103
constexpr real_t ulp() noexcept
Unit in the Last Place.
Definition constants.hpp:32
constexpr real_t blue_scalingMax() noexcept
Blue's scaling constant for numbers bigger than B.
Definition constants.hpp:151
constexpr real_t blue_scalingMin() noexcept
Blue's scaling constant for numbers smaller than b.
Definition constants.hpp:136
constexpr real_t safe_max() noexcept
Safe Maximum.
Definition constants.hpp:93
constexpr real_t blue_max() noexcept
Blue's max constant B for the sum of squares.
Definition constants.hpp:117
constexpr real_t safe_min() noexcept
Safe Minimum.
Definition constants.hpp:77
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