|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
TrackedAreal exposes areal's native ubit uncertainty tracking with a consistent interface matching other tracked types. More...
#include <tracked.hpp>
Public Types | |
| using | value_type = ArealType |
Public Member Functions | |
| constexpr | TrackedAreal () noexcept |
| template<typename U> | |
| constexpr | TrackedAreal (U v) noexcept |
| constexpr | TrackedAreal (ArealType v, uint64_t ops) noexcept |
| constexpr | TrackedAreal (const TrackedAreal &) noexcept=default |
| constexpr | TrackedAreal (TrackedAreal &&) noexcept=default |
| constexpr TrackedAreal & | operator= (const TrackedAreal &) noexcept=default |
| constexpr TrackedAreal & | operator= (TrackedAreal &&) noexcept=default |
| template<typename U> | |
| constexpr TrackedAreal & | operator= (U v) noexcept |
| constexpr ArealType | value () const noexcept |
| constexpr uint64_t | operations () const noexcept |
| constexpr | operator ArealType () const noexcept |
| bool | is_exact () const noexcept |
| Check if value is exact (ubit = 0). | |
| double | error () const noexcept |
| Error bound based on ubit When ubit=1, true value is in (value, next(value)). | |
| double | relative_error () const noexcept |
| double | valid_bits () const noexcept |
| TrackedAreal | operator+ (const TrackedAreal &rhs) const |
| TrackedAreal | operator- (const TrackedAreal &rhs) const |
| TrackedAreal | operator- () const |
| TrackedAreal | operator* (const TrackedAreal &rhs) const |
| TrackedAreal | operator/ (const TrackedAreal &rhs) const |
| TrackedAreal & | operator+= (const TrackedAreal &rhs) |
| TrackedAreal & | operator-= (const TrackedAreal &rhs) |
| TrackedAreal & | operator*= (const TrackedAreal &rhs) |
| TrackedAreal & | operator/= (const TrackedAreal &rhs) |
| bool | operator== (const TrackedAreal &rhs) const noexcept |
| bool | operator!= (const TrackedAreal &rhs) const noexcept |
| bool | operator< (const TrackedAreal &rhs) const noexcept |
| bool | operator<= (const TrackedAreal &rhs) const noexcept |
| bool | operator> (const TrackedAreal &rhs) const noexcept |
| bool | operator>= (const TrackedAreal &rhs) const noexcept |
| void | report (std::ostream &os) const |
TrackedAreal exposes areal's native ubit uncertainty tracking with a consistent interface matching other tracked types.
| using sw::universal::TrackedAreal< ArealType >::value_type = ArealType |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlinenoexcept |
Error bound based on ubit When ubit=1, true value is in (value, next(value)).
|
inlinenoexcept |
Check if value is exact (ubit = 0).
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlineconstexprnoexcept |