Exact sum of products of Ts (top of file).
More...
#include <exact_accumulator.hpp>
|
| using | lim = std::numeric_limits<T> |
|
| static constexpr int | lsb = 2 * (lim::min_exponent - lim::digits) |
| | Binary exponent of bit 0: the smallest product of two subnormals.
|
| static constexpr int | bits = 2 * lim::max_exponent - lsb + 64 |
| | Bits for the largest product, 2^(2 * max_exponent), plus 64 carry bits.
|
| static constexpr std::size_t | limbs = static_cast<std::size_t>(bits + 63) / 64 |
| static constexpr std::uint8_t | pos_inf = 1 |
| | Non-finite state, as bit flags: an infinity of each sign, and NaN.
|
| static constexpr std::uint8_t | neg_inf = 2 |
| static constexpr std::uint8_t | nan = 4 |
template<typename T>
requires exact_accumulable<T>
struct mtl::math::exact_accumulator< T >
Exact sum of products of Ts (top of file).
Trivially constructible: a value-initialized exact_accumulator<T>{} is zero, and so is one cleared with accumulator_clear.
◆ lim
◆ negative()
◆ bits
Bits for the largest product, 2^(2 * max_exponent), plus 64 carry bits.
◆ limbs
◆ lsb
Binary exponent of bit 0: the smallest product of two subnormals.
◆ nan
◆ neg_inf
◆ pos_inf
Non-finite state, as bit flags: an infinity of each sign, and NaN.
◆ special
The documentation for this struct was generated from the following file: