Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
pow.hpp File Reference
#include <cmath>
#include <universal/number/posit/math/evaluate.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define UNIVERSAL_MATH_INTEGER_POWER_DEFINED

Functions

template<unsigned nbits, unsigned es, typename bt>
posit< nbits, es, bt > sw::universal::pow (posit< nbits, es, bt > x, posit< nbits, es, bt > y)
template<unsigned nbits, unsigned es, typename bt>
posit< nbits, es, bt > sw::universal::pow (posit< nbits, es, bt > x, int y)
template<unsigned nbits, unsigned es, typename bt>
posit< nbits, es, bt > sw::universal::pow (posit< nbits, es, bt > x, double y)
template<typename Scalar>
Scalar sw::universal::integer_power (Scalar base, int exponent)

Macro Definition Documentation

◆ UNIVERSAL_MATH_INTEGER_POWER_DEFINED

#define UNIVERSAL_MATH_INTEGER_POWER_DEFINED