Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
complex.hpp File Reference
#include <cmath>
#include <complex>
#include <sstream>
#include <type_traits>
#include <string>
#include <universal/math/complex/complex_traits.hpp>
#include <universal/math/complex/complex_impl.hpp>
#include <universal/math/complex/complex_operators.hpp>
#include <universal/math/complex/complex_functions.hpp>
#include <universal/math/complex/complex_literals.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<ComplexCompatible T>
std::string sw::universal::to_binary (const complex< T > &c, bool nibbleMarker=false)
 Convert complex number to binary string representation.
template<ComplexCompatible T>
std::string sw::universal::to_string (const complex< T > &c)
 Convert complex number to string representation.
template<ComplexCompatible T>
std::string sw::universal::to_triple (const complex< T > &c)
 Convert complex number to triple representation (sign, scale, fraction).
template<ComplexCompatible T>
double sw::universal::complex_to_hue (const complex< T > &c)
 Map complex number to hue value [0, 360) based on argument.