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 <cstdint>
#include <cmath>
#include <iomanip>
#include <sstream>
#include <string>
#include <type_traits>
#include <universal/number/lindex/core.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename LindexType, std::enable_if_t< is_lindex< LindexType >, bool > = true>
std::string sw::universal::type_tag (const LindexType &={})
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::to_binary (const lindex< nbits, lbits, bt > &v, bool nibbleMarker=false)
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::to_hex (const lindex< nbits, lbits, bt > &v, bool nibbleMarker=false)
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::to_value_string (const lindex< nbits, lbits, bt > &v, int precision=17)
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::info_print (const lindex< nbits, lbits, bt > &v, int printPrecision=17)
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::components (const lindex< nbits, lbits, bt > &v)
template<unsigned nbits, unsigned lbits, typename bt>
std::string sw::universal::color_print (const lindex< nbits, lbits, bt > &v, bool nibbleMarker=false)
template<typename LindexType, std::enable_if_t< is_lindex< LindexType >, bool > = true>
std::string sw::universal::range (const LindexType &={})