Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
manipulators.hpp File Reference
#include <universal/internal/blocktriple/manipulators.hpp>
#include <universal/internal/blockbinary/manipulators.hpp>
#include <cctype>
#include <cstdint>
#include <ios>
#include <limits>
#include <regex>
#include <string_view>
#include <iomanip>
#include <string>
#include <sstream>
#include <cmath>
#include <typeinfo>
#include <universal/number/posit/posit_fields_io.hpp>
#include <universal/utility/color_print.hpp>
#include <universal/number/posit/core.hpp>
#include <universal/number/posit/attributes.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::type_tag (const posit< nbits, es, bt > &={})
template<unsigned nbits, unsigned es, typename bt = std::uint8_t>
std::string sw::universal::posit_range ()
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::hex_print (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::components (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::color_print (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::hex_format (const posit< nbits, es, bt > &p)
template<typename Float>
std::string sw::universal::hex_format (Float f)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::to_string (const posit< nbits, es, bt > &p, std::streamsize precision=17)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::to_binary (const posit< nbits, es, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::to_native (const posit< nbits, es, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::to_triple (const posit< nbits, es, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::to_base2_scientific (const posit< nbits, es, bt > &number)
template<unsigned nbits, unsigned es, typename bt>
std::string sw::universal::quadrant (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::parse (const std::string &txt, posit< nbits, es, bt > &p)