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::sorn_limits::lattice< start, stop, steps, lin > Struct Template Reference

#include <numeric_limits.hpp>

Static Public Member Functions

static constexpr float smallest ()
static constexpr float largest ()
static constexpr float width_above_one ()
static constexpr int digits ()

Static Public Attributes

static constexpr float step = (float)(stop - start) / (float)steps

Member Function Documentation

◆ digits()

template<int start, int stop, unsigned steps, bool lin>
constexpr int sw::universal::sorn_limits::lattice< start, stop, steps, lin >::digits ( )
inlinestaticconstexpr

◆ largest()

template<int start, int stop, unsigned steps, bool lin>
constexpr float sw::universal::sorn_limits::lattice< start, stop, steps, lin >::largest ( )
inlinestaticconstexpr

◆ smallest()

template<int start, int stop, unsigned steps, bool lin>
constexpr float sw::universal::sorn_limits::lattice< start, stop, steps, lin >::smallest ( )
inlinestaticconstexpr

◆ width_above_one()

template<int start, int stop, unsigned steps, bool lin>
constexpr float sw::universal::sorn_limits::lattice< start, stop, steps, lin >::width_above_one ( )
inlinestaticconstexpr

Member Data Documentation

◆ step

template<int start, int stop, unsigned steps, bool lin>
float sw::universal::sorn_limits::lattice< start, stop, steps, lin >::step = (float)(stop - start) / (float)steps
staticconstexpr

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