All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Classes | Namespaces | Functions
fraction.hpp File Reference

Implementation of fractions, which are used only for comparison purposes, and thus they can be used with floating point types as well. More...

#include "paal/utils/floating.hpp"

Go to the source code of this file.

Classes

struct  paal::data_structures::fraction< A, B >
 simple class to represent fraction More...
 

Namespaces

 paal
 global namespace of project.
 
 paal::data_structures
 Data Structure namespace.
 

Functions

template<class A , class B , class C , class D >
bool paal::data_structures::operator< (const fraction< A, B > &f1, const fraction< C, D > &f2)
 operator< More...
 
template<class A , class B , class C , class D >
bool paal::data_structures::operator> (const fraction< A, B > &f1, const fraction< C, D > &f2)
 operator> More...
 
template<class A , class B , class C , class D >
bool paal::data_structures::operator<= (const fraction< A, B > &f1, const fraction< C, D > &f2)
 operator<= More...
 
template<class A , class B , class C , class D >
bool paal::data_structures::operator>= (const fraction< A, B > &f1, const fraction< C, D > &f2)
 operator>= More...
 
template<class A , class B , class C , class D , class EPS = A>
bool paal::data_structures::are_fractions_equal (const fraction< A, B > &f1, const fraction< C, D > &f2, EPS eps=A{})
 operator== More...
 
template<class A , class B >
fraction< A, B > paal::data_structures::make_fraction (A a, B b)
 make function for fraction More...
 
template<class A , class B , class C >
auto paal::data_structures::operator* (C c, const fraction< A, B > &f)
 operator* More...
 

Detailed Description

Implementation of fractions, which are used only for comparison purposes, and thus they can be used with floating point types as well.

Author
Robert Rosolek
Version
1.0
Date
2013-06-06

Definition in file fraction.hpp.