|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
TrackedInterval exposes interval's native bound tracking with a consistent interface matching other tracked types. More...
#include <tracked.hpp>
Public Types | |
| using | value_type = interval<Scalar> |
Public Member Functions | |
| constexpr | TrackedInterval () noexcept |
| template<typename U> | |
| constexpr | TrackedInterval (U v) noexcept |
| constexpr | TrackedInterval (Scalar lo, Scalar hi) noexcept |
| constexpr | TrackedInterval (interval< Scalar > v) noexcept |
| constexpr | TrackedInterval (interval< Scalar > v, uint64_t ops) noexcept |
| constexpr | TrackedInterval (const TrackedInterval &) noexcept=default |
| constexpr | TrackedInterval (TrackedInterval &&) noexcept=default |
| constexpr TrackedInterval & | operator= (const TrackedInterval &) noexcept=default |
| constexpr TrackedInterval & | operator= (TrackedInterval &&) noexcept=default |
| constexpr interval< Scalar > | value () const noexcept |
| constexpr uint64_t | operations () const noexcept |
| constexpr | operator interval< Scalar > () const noexcept |
| Scalar | midpoint () const noexcept |
| Get the midpoint as the "representative" value. | |
| bool | is_exact () const noexcept |
| Is this a degenerate (exact) interval? | |
| double | error () const noexcept |
| Error is the interval width (enclosure of all possible values). | |
| double | relative_error () const noexcept |
| double | valid_bits () const noexcept |
| TrackedInterval | operator+ (const TrackedInterval &rhs) const |
| TrackedInterval | operator- (const TrackedInterval &rhs) const |
| TrackedInterval | operator- () const |
| TrackedInterval | operator* (const TrackedInterval &rhs) const |
| TrackedInterval | operator/ (const TrackedInterval &rhs) const |
| TrackedInterval & | operator+= (const TrackedInterval &rhs) |
| TrackedInterval & | operator-= (const TrackedInterval &rhs) |
| TrackedInterval & | operator*= (const TrackedInterval &rhs) |
| TrackedInterval & | operator/= (const TrackedInterval &rhs) |
| bool | operator== (const TrackedInterval &rhs) const noexcept |
| bool | operator!= (const TrackedInterval &rhs) const noexcept |
| void | report (std::ostream &os) const |
TrackedInterval exposes interval's native bound tracking with a consistent interface matching other tracked types.
| using sw::universal::TrackedInterval< Scalar >::value_type = interval<Scalar> |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlinenoexcept |
Error is the interval width (enclosure of all possible values).
|
inlinenoexcept |
Is this a degenerate (exact) interval?
|
inlinenoexcept |
Get the midpoint as the "representative" value.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlineconstexprnoexcept |