ProjGeom 1.0.11
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
fractions.hpp File Reference
#include <numeric>
#include <type_traits>
#include <utility>
#include "common_concepts.h"
Include dependency graph for fractions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fun::Fraction< Z >
 Fraction. More...
 

Namespaces

namespace  fun
 

Functions

template<typename T >
constexpr auto fun::abs (const T &a) -> T
 absolute
 
template<Integral Mn>
constexpr auto fun::gcd_recur (const Mn &_m, const Mn &_n) -> Mn
 Greatest common divider.
 
template<Integral Mn>
constexpr auto fun::gcd (const Mn &_m, const Mn &_n) -> Mn
 Greatest common divisor.
 
template<Integral Mn>
constexpr auto fun::lcm (const Mn &_m, const Mn &_n) -> Mn
 Least common multiple.
 

Detailed Description

This is a C++ Library header.