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::GeometricMean Struct Reference

Geometric mean: f(a,b) = sqrt(a*b) Used by LNS and FP representations. More...

#include <generators.hpp>

Public Member Functions

template<typename R>
R operator() (const R &a, const R &b) const

Detailed Description

Geometric mean: f(a,b) = sqrt(a*b) Used by LNS and FP representations.

Natural refinement for logarithmic encodings.

Member Function Documentation

◆ operator()()

template<typename R>
R sw::universal::GeometricMean::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