|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <iostream>#include <iomanip>#include <vector>#include <universal/number/integer/exceptions.hpp>Classes | |
| class | sw::universal::primefactors< IntegerType > |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Functions | |
| template<typename IntegerType> | |
| IntegerType | sw::universal::gcd (const IntegerType &a, const IntegerType &b) |
| template<typename IntegerType> | |
| IntegerType | sw::universal::gcd (const std::vector< IntegerType > &v) |
| template<typename IntegerType> | |
| IntegerType | sw::universal::lcm (const IntegerType &a, const IntegerType &b) |
| template<typename IntegerType> | |
| IntegerType | sw::universal::lcm (const std::vector< IntegerType > &v) |
| template<typename IntegerType> | |
| bool | sw::universal::isPrime_ (const IntegerType &a) |
| template<typename IntegerType> | |
| bool | sw::universal::isPrime (const IntegerType &a) |
| template<typename IntegerType> | |
| bool | sw::universal::isPrimeTracer (const IntegerType &a) |
| template<typename IntegerType> | |
| bool | sw::universal::primeNumbersInRange (const IntegerType low, const IntegerType high, std::vector< IntegerType > &primes) |
| template<typename IntegerType> | |
| void | sw::universal::printPrimes (const std::vector< IntegerType > &v) |
| template<typename IntegerType> | |
| void | sw::universal::primeFactorization (const IntegerType &a, primefactors< IntegerType > &factors) |
| template<typename IntegerType> | |
| IntegerType | sw::universal::fermatFactorization (const IntegerType &number) |