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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
integer< nbits, BlockType, NumberType > sw::universal::sqrt (const integer< nbits, BlockType, NumberType > &a)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
integer< nbits, BlockType, NumberType > sw::universal::floor_sqrt (const integer< nbits, BlockType, NumberType > &a)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
integer< nbits, BlockType, NumberType > sw::universal::ceil_sqrt (const integer< nbits, BlockType, NumberType > &a)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
bool sw::universal::perfect_square (const integer< nbits, BlockType, NumberType > &a)