arby
v0.4.2
Arbitrary precision arithmetic in C++, even at compile time
|
Main namespace. More...
Namespaces | |
literals | |
Various custom user-defined-literals for creating arby objects. | |
Classes | |
class | Nat |
Arbitrary-precision unsigned integer type. More... | |
Functions | |
constexpr Nat | pow (const Nat &base, const Nat &exponent) |
constexpr std::pair< Nat, Nat > | ilog (const Nat &base, const Nat &x) |
Calculates integer log of x in base More... | |
std::ostream & | operator<< (std::ostream &os, const Nat &object) |
Main namespace.
Usage:
arby
Introduces literal operators into global scope, allowing them to be used as literals
OR:
Calculates integer log of x
in base
base | base to use for \(b\) |
x | value to use for \(x\) |
std::domain_error | when \(b<2\) |
std::domain_error | when \(x<1\) |
std::ostream& com::saxbophone::arby::operator<< | ( | std::ostream & | os, |
const Nat & | object | ||
) |
base,exponent | parameters for the base and exponent |
Referenced by com::saxbophone::arby::Nat::pow().