Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::ArithmeticMean Struct Reference

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

Detailed Description

Arithmetic mean: f(a,b) = (a+b)/2 Used by Unary, Fibonacci, and as the fraction interpolator for IEEE-like and Posit-like representations.

Member Function Documentation

◆ operator()()

template<typename R>
R sw::universal::ArithmeticMean::operator() ( const R & a,
const R & b ) const
inline

The documentation for this struct was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/number/bisection/generators.hpp