|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <type_traits>#include <concepts>Classes | |
| struct | sw::universal::is_universal_number< T > |
| Primary template: not a Universal number type. More... | |
| struct | sw::universal::is_sw_complex< T > |
| Primary template: not a sw::universal::complex type. More... | |
| struct | sw::universal::is_high_precision< T > |
| Primary template: not a high-precision type. More... | |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Concepts | |
| concept | sw::universal::Arithmetic |
| Concept: Type supports basic arithmetic operations. | |
| concept | sw::universal::ComplexCompatible |
| Concept: Type is suitable for complex arithmetic (can convert to/from double). | |
Typedefs | |
| template<typename T, typename Type = void> | |
| using | sw::universal::enable_if_complex_compatible = std::enable_if_t<ComplexCompatible<T>, Type> |
| Enable if type is ComplexCompatible. | |
| template<typename T, typename Type = void> | |
| using | sw::universal::enable_if_sw_complex = std::enable_if_t<is_sw_complex_v<T>, Type> |
| Enable if type is sw::universal::complex. | |
Variables | |
| template<typename T> | |
| constexpr bool | sw::universal::is_universal_number_v = is_universal_number<T>::value |
| Helper variable template. | |
| template<typename T> | |
| constexpr bool | sw::universal::is_sw_complex_v = is_sw_complex<T>::value |
| Helper variable template. | |
| template<typename T> | |
| constexpr bool | sw::universal::is_high_precision_v = is_high_precision<T>::value |
| Helper variable template. | |