|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Wrapper class combining occurrence counting with energy estimation. More...
#include <occurrence_energy.hpp>
Public Member Functions | |
| OccurrenceEnergy (const EnergyCostModel &model=getDefaultModel(), BitWidth width=BitWidth::bits_32, MemoryLevel mem_level=MemoryLevel::L1_Cache) | |
| void | setOccurrence (const occurrence< NumberSystem > &ops) |
| Set occurrence counts (copy from external source). | |
| occurrence< NumberSystem > & | ops () |
| Get reference to internal occurrence (for direct manipulation). | |
| const occurrence< NumberSystem > & | ops () const |
| void | reset () |
| Reset all counts. | |
| double | totalEnergyPJ () const |
| Calculate total energy in picojoules. | |
| double | totalEnergyNJ () const |
| Calculate total energy in nanojoules. | |
| double | totalEnergyUJ () const |
| Calculate total energy in microjoules. | |
| EnergyBreakdown< NumberSystem > | breakdown () const |
| Get detailed energy breakdown. | |
| const EnergyCostModel & | model () const |
| Get the energy model. | |
| BitWidth | width () const |
| Get/set bit-width. | |
| void | setWidth (BitWidth w) |
| MemoryLevel | memoryLevel () const |
| Get/set memory level. | |
| void | setMemoryLevel (MemoryLevel level) |
| void | report (std::ostream &ostr) const |
| Report operation counts and energy. | |
Wrapper class combining occurrence counting with energy estimation.
|
inline |
|
inline |
Get detailed energy breakdown.
|
inline |
Get/set memory level.
|
inline |
Get the energy model.
|
inline |
Get reference to internal occurrence (for direct manipulation).
|
inline |
|
inline |
Report operation counts and energy.
|
inline |
Reset all counts.
|
inline |
|
inline |
Set occurrence counts (copy from external source).
|
inline |
|
inline |
Calculate total energy in nanojoules.
|
inline |
Calculate total energy in picojoules.
|
inline |
Calculate total energy in microjoules.
|
inline |
Get/set bit-width.