|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <concepts>#include <cstdint>#include <type_traits>#include <vector>#include <universal/number/quire/quire.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Concepts | |
| concept | sw::universal::native_quire_element |
Functions | |
| blocktriple< 23, BlockTripleOperator::MUL, uint32_t > | sw::universal::quire_mul (float lhs, float rhs) |
| blocktriple< 52, BlockTripleOperator::MUL, uint32_t > | sw::universal::quire_mul (double lhs, double rhs) |
| template<unsigned capacity, typename LimbType> | |
| float | sw::universal::quire_resolve (const quire< float, capacity, LimbType > &q) |
| template<unsigned capacity, typename LimbType> | |
| double | sw::universal::quire_resolve (const quire< double, capacity, LimbType > &q) |
| template<native_quire_element Real, unsigned capacity, typename LimbType> | |
| void | sw::universal::accumulator_clear (quire< Real, capacity, LimbType > &q) |
| q = 0 | |
| template<native_quire_element Real, unsigned capacity, typename LimbType, typename Value> requires std::same_as<Value, Real> | |
| void | sw::universal::accumulator_assign (quire< Real, capacity, LimbType > &q, const Value &v) |
| q = v, exactly | |
| template<native_quire_element Real, unsigned capacity, typename LimbType, typename Value> requires std::same_as<Value, Real> | |
| void | sw::universal::accumulator_add_product (quire< Real, capacity, LimbType > &q, const Value &a, const Value &b) |
| q += a * b, the product exact | |
| template<native_quire_element Real, unsigned capacity, typename LimbType, typename Result> | |
| Result | sw::universal::accumulator_value (const quire< Real, capacity, LimbType > &q, std::type_identity< Result >) |
| The round-out: once to float or double, otherwise through the correctly rounded double, which may round twice. | |
| template<native_quire_element Real, unsigned capacity, typename LimbType> | |
| void | sw::universal::accumulator_merge (quire< Real, capacity, LimbType > &q, const quire< Real, capacity, LimbType > &other) |
| q += other, exactly: combines the partial quires of a split reduction | |