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

Golden ratio: g(x) = phi * x, sequence = 1, phi, phi^2, phi^3, ... Represents integers as sums of Fibonacci numbers. More...

#include <generators.hpp>

Public Member Functions

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

Detailed Description

Golden ratio: g(x) = phi * x, sequence = 1, phi, phi^2, phi^3, ... Represents integers as sums of Fibonacci numbers.

Member Function Documentation

◆ operator()()

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