units
Use physical dimensions at compile-time or run-time.
Namespaces | Typedefs | Functions
gcd.hpp File Reference

Definition of vnix::gcd. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 vnix
 Thomas E. Vaughan's public software.
 
 vnix::impl
 

Typedefs

template<typename U , typename V >
using vnix::gcd_promoted = decltype(U()%V())
 Output-type resulting from modular division of input-types. More...
 

Functions

template<typename A , typename B >
constexpr gcd_promoted< A, B > vnix::impl::basic_gcd (A a, B b)
 Greatest common divisor of two nonnegative numbers. More...
 
template<typename A , typename B >
constexpr gcd_promoted< A, B > vnix::gcd (A a, B b)
 Greatest common divisor of two numbers; only absolute values are used. More...
 

Detailed Description

Definition of vnix::gcd.

License: BSD Three-Clause; see LICENSE.

Definition in file gcd.hpp.