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

Characteristics of a number system type. More...

#include <type_advisor.hpp>

Public Attributes

std::string name
std::string family
int total_bits
int exponent_bits
int fraction_bits
double max_value
double min_positive
double epsilon
double energy_per_fma
bool has_subnormals
bool has_inf
bool has_nan

Detailed Description

Characteristics of a number system type.

Member Data Documentation

◆ energy_per_fma

double sw::universal::TypeCharacteristics::energy_per_fma

◆ epsilon

double sw::universal::TypeCharacteristics::epsilon

◆ exponent_bits

int sw::universal::TypeCharacteristics::exponent_bits

◆ family

std::string sw::universal::TypeCharacteristics::family

◆ fraction_bits

int sw::universal::TypeCharacteristics::fraction_bits

◆ has_inf

bool sw::universal::TypeCharacteristics::has_inf

◆ has_nan

bool sw::universal::TypeCharacteristics::has_nan

◆ has_subnormals

bool sw::universal::TypeCharacteristics::has_subnormals

◆ max_value

double sw::universal::TypeCharacteristics::max_value

◆ min_positive

double sw::universal::TypeCharacteristics::min_positive

◆ name

std::string sw::universal::TypeCharacteristics::name

◆ total_bits

int sw::universal::TypeCharacteristics::total_bits

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