Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
generateClosurePlots.hpp File Reference
#include <vector>
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <filesystem>
#include <cstdlib>
#include <universal/utility/error.hpp>

Classes

struct  sw::universal::OperationStruc< NumberType, Op >
struct  sw::universal::NumberSystemStats

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename NumberType>
void sw::universal::calculateError (const std::string &result, double vcDouble, double targetVal, double &absErr, double &relativeErr, double &relativeLogErr, NumberType maxpos, NumberType minpos)
 helper function for systemEvaluators:
template<typename NumberType>
void sw::universal::configureValue (NumberType v, std::string &vString)
template<typename NumberType, char Op>
int sw::universal::systemEvaluator (std::string system, NumberSystemStats &stats, std::ostream &outFile, std::ostream &csvFile, const OperationStruc< NumberType, Op > &operation)
 Handles the logic for building a closure plot for a number system.
std::string sw::universal::getOperation (char op)
void sw::universal::ReportNumberSystemClosureStats (std::ostream &ostr, std::string numberSystem, std::map< char, NumberSystemStats > &results)
 Appends the aggregated to the running master file.
template<typename NumberType>
int sw::universal::buildClosurePlot (std::string system, std::ostream &txtFile, std::ostream &csvFile)
 main function builds a "closure plot" for a templatized number system