Template Struct compensated_fp_t

Struct Documentation

template<Scalar T>
struct compensated_fp_t

Used for error reduced transformations. Adapted from PBR book.

Public Functions

inline constexpr compensated_fp_t(T val) noexcept
constexpr compensated_fp_t(const compensated_fp_t&) noexcept = default
constexpr compensated_fp_t &operator=(const compensated_fp_t&) noexcept = default
inline constexpr compensated_fp_t &operator=(const T &f) noexcept
template<Scalar S>
inline constexpr auto &operator+=(S f) noexcept
template<Scalar S>
inline constexpr auto operator+(S f) noexcept
inline explicit constexpr operator T() const noexcept

Public Members

T val
T err = {}