units
Use physical dimensions at compile-time or run-time.
Classes | Namespaces | Functions
common-denom.hpp File Reference

Definition of vnix::rat::common_denom. More...

#include <vnix/gcd.hpp>
#include <vnix/int-types.hpp>
Include dependency graph for common-denom.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vnix::rat::rational< NB, DB >
 Model of a fixed-precision rational number. More...
 
struct  vnix::rat::common_denom_params< NB1, DB1, NB2, DB2 >
 Least common denominator (LCD) and corresponding numerators for the comparison of a pair of rational numbers. More...
 
struct  vnix::rat::common_denom_params< NB1, DB1, NB2, DB2 >
 Least common denominator (LCD) and corresponding numerators for the comparison of a pair of rational numbers. More...
 

Namespaces

 vnix
 Thomas E. Vaughan's public software.
 
 vnix::rat
 Classes and functions supporting a model of a fixed-precision rational number.
 

Functions

template<unsigned NB1, unsigned DB1, unsigned NB2, unsigned DB2>
constexpr common_denom_params< NB1, DB1, NB2, DB2 > vnix::rat::common_denom (rational< NB1, DB1 > r1, rational< NB2, DB2 > r2)
 Compute least common denominator and corresponding numerators for the comparison of a pair of rational numbers. More...
 

Detailed Description

Definition of vnix::rat::common_denom.

License: BSD Three-Clause; see LICENSE.

Definition in file common-denom.hpp.