atlas  0.6
Namespaces | Functions | Variables
arithmetic.cpp File Reference
#include "arithmetic.h"
#include <stdexcept>
#include <cassert>
#include <cstdlib>
#include "constants.h"
#include "bits.h"
#include "error.h"
Include dependency graph for arithmetic.cpp:

Namespaces

 atlas
 
 atlas::arithmetic
 

Functions

Denom_t atlas::arithmetic::unsigned_gcd (Denom_t a, Denom_t b)
 
Denom_t atlas::arithmetic::lcm (Denom_t a, Denom_t b, Denom_t &gcd, Denom_t &mult_a)
 
Denom_t atlas::arithmetic::modProd (Denom_t a, Denom_t b, Denom_t n)
 
Denom_t atlas::arithmetic::power (Denom_t x, unsigned int n)
 
std::ostream & atlas::arithmetic::operator<< (std::ostream &out, const Rational &frac)
 

Variables

Denom_t atlas::arithmetic::dummy_gcd
 
Denom_t atlas::arithmetic::dummy_mult