|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Macros | |
| #define | SW_VOLATILE |
Functions | |
| template<typename Scalar> | |
| void | sw::universal::twoSum (const Scalar &a, const Scalar &b, Scalar &s, Scalar &r) |
| For any faithful number system, twoSum generates the relationship a + b = s + r, where s is the sum, and r is the remainder. | |
| template<typename Vector, typename Scalar> | |
| void | sw::universal::cascadingSum (const Vector &v, Scalar &s, Scalar &r) |
| cascadingSum generates a cumulative twoSum on a vector | |
| #define SW_VOLATILE |