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

Elias omega: g(x) = 2^x, sequence via tetration: 1, 2, 4, 16, 65536, ... The fastest-growing generator in the paper. More...

#include <generators.hpp>

Public Member Functions

template<typename R>
R operator() (const R &x) const

Detailed Description

Elias omega: g(x) = 2^x, sequence via tetration: 1, 2, 4, 16, 65536, ... The fastest-growing generator in the paper.

Clamp output to avoid double overflow (2^(2^16) is far beyond double range).

Member Function Documentation

◆ operator()()

template<typename R>
R sw::universal::EliasOmegaGenerator::operator() ( const R & x) 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