|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <type_traits>#include <cstdint>#include <ostream>Classes | |
| struct | sw::universal::error_tracking_traits< T, typename > |
| Primary template for error tracking traits Provides default values suitable for unknown types. More... | |
| struct | sw::universal::error_tracking_traits< float > |
| struct | sw::universal::error_tracking_traits< double > |
| struct | sw::universal::error_tracking_traits< long double > |
| struct | sw::universal::error_tracking_traits< cfloat< _nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > > |
| struct | sw::universal::error_tracking_traits< posit< _nbits, es, bt > > |
| struct | sw::universal::error_tracking_traits< lns< _nbits, _rbits, bt, x... > > |
| struct | sw::universal::error_tracking_traits< areal< _nbits, es, bt > > |
| struct | sw::universal::error_tracking_traits< interval< Scalar > > |
| struct | sw::universal::error_tracking_traits< valid< _nbits, es > > |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Typedefs | |
| template<typename T> | |
| using | sw::universal::shadow_type_t = typename error_tracking_traits<T>::shadow_type |
| Get the shadow type for a given number type. | |
Enumerations | |
| enum class | sw::universal::ErrorStrategy { sw::universal::Exact , sw::universal::Shadow , sw::universal::Bounded , sw::universal::Statistical , sw::universal::Inherent } |
| Enumeration of available error tracking strategies. More... | |
Functions | |
| constexpr const char * | sw::universal::strategy_name (ErrorStrategy s) |
| Get a string name for an error strategy. | |
| template<typename T> | |
| void | sw::universal::report_error_tracking_traits (std::ostream &os) |
| Output a summary of error tracking traits for a type. | |
Variables | |
| template<typename T> | |
| constexpr bool | sw::universal::has_exact_errors_v = error_tracking_traits<T>::has_exact_errors |
| Check if a type supports exact error tracking. | |
| template<typename T> | |
| constexpr bool | sw::universal::exact_multiplication_v = error_tracking_traits<T>::exact_multiplication |
| Check if a type has exact multiplication (LNS). | |
| template<typename T> | |
| constexpr bool | sw::universal::tracks_uncertainty_v = error_tracking_traits<T>::tracks_uncertainty |
| Check if a type natively tracks uncertainty. | |
| template<typename T> | |
| constexpr bool | sw::universal::is_interval_type_v = error_tracking_traits<T>::is_interval_type |
| Check if a type is an interval type. | |
| template<typename T> | |
| constexpr ErrorStrategy | sw::universal::default_strategy_v = error_tracking_traits<T>::default_strategy |
| Get the default error strategy for a type. | |