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

Comparison between two precision configurations. More...

#include <algorithm_profiler.hpp>

Public Member Functions

void calculate ()
void report (std::ostream &ostr) const

Public Attributes

AlgorithmProfile baseline
AlgorithmProfile alternative
double ops_ratio
double memory_ratio
double compute_energy_ratio
double memory_energy_ratio
double total_energy_ratio
double energy_savings_pct

Detailed Description

Comparison between two precision configurations.

Member Function Documentation

◆ calculate()

void sw::universal::PrecisionComparison::calculate ( )
inline

◆ report()

void sw::universal::PrecisionComparison::report ( std::ostream & ostr) const
inline

Member Data Documentation

◆ alternative

AlgorithmProfile sw::universal::PrecisionComparison::alternative

◆ baseline

AlgorithmProfile sw::universal::PrecisionComparison::baseline

◆ compute_energy_ratio

double sw::universal::PrecisionComparison::compute_energy_ratio

◆ energy_savings_pct

double sw::universal::PrecisionComparison::energy_savings_pct

◆ memory_energy_ratio

double sw::universal::PrecisionComparison::memory_energy_ratio

◆ memory_ratio

double sw::universal::PrecisionComparison::memory_ratio

◆ ops_ratio

double sw::universal::PrecisionComparison::ops_ratio

◆ total_energy_ratio

double sw::universal::PrecisionComparison::total_energy_ratio

The documentation for this struct was generated from the following file: