Wildmeshing Toolkit
Rational.cpp File Reference
#include "Rational.hpp"
#include <cassert>
#include <cmath>
#include <limits>
#include <sstream>
Include dependency graph for Rational.cpp:

Go to the source code of this file.

Namespaces

 wmtk
 

Functions

Rational wmtk::operator+ (const Rational &x, const Rational &y)
 
Rational wmtk::operator- (const Rational &x, const Rational &y)
 
Rational wmtk::operator- (const Rational &x)
 
Rational wmtk::pow (const Rational &x, int p)
 
Rational wmtk::operator* (const Rational &x, const Rational &y)
 
Rational wmtk::operator/ (const Rational &x, const Rational &y)
 
int wmtk::cmp (const Rational &r, const Rational &r1)
 
bool wmtk::operator== (const Rational &r, const Rational &r1)
 
bool wmtk::operator!= (const Rational &r, const Rational &r1)
 
Rational wmtk::abs (const Rational &r0)
 
std::ostream & wmtk::operator<< (std::ostream &os, const Rational &r)