|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Arithmetic mean: f(a,b) = (a+b)/2 Used by Unary, Fibonacci, and as the fraction interpolator for IEEE-like and Posit-like representations. More...
#include <generators.hpp>
Public Member Functions | |
| template<typename R> | |
| R | operator() (const R &a, const R &b) const |
Arithmetic mean: f(a,b) = (a+b)/2 Used by Unary, Fibonacci, and as the fraction interpolator for IEEE-like and Posit-like representations.
|
inline |