Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
src/math/rational/rational.h File Reference
#include <ostream>
#include <stdexcept>
#include <stdint.h>
#include "math/gcd/gcd.h"
#include "utils/preconditions/preconditions.h"
#include "third_party/safeint3.hpp"
Include dependency graph for rational.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  math::rational::Rational< T >

Namespaces

namespace  math
namespace  math::rational

Defines

#define NEEDS_INT_DEFINED

Functions

template<typename T >
Rational< T > math::rational::operator- (const Rational< T > &a)
template<typename T >
bool math::rational::operator== (const Rational< T > &a, const Rational< T > &b)
template<typename T >
bool math::rational::operator< (const Rational< T > &a, const Rational< T > &b)
template<typename T >
bool math::rational::operator> (const Rational< T > &a, const Rational< T > &b)
template<typename T >
bool math::rational::operator<= (const Rational< T > &a, const Rational< T > &b)
template<typename T >
bool math::rational::operator>= (const Rational< T > &a, const Rational< T > &b)
template<typename T >
std::ostream & math::rational::operator<< (std::ostream &out, const Rational< T > &a)

Define Documentation

#define NEEDS_INT_DEFINED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines