Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
common_factor_rt.hpp File Reference
#include <boost/math_fwd.hpp>
#include <boost/config.hpp>
#include <boost/limits.hpp>
#include <climits>
#include <boost/detail/workaround.hpp>
Include dependency graph for common_factor_rt.hpp:
This graph shows which files directly or indirectly include this file:

Classes

singleton  boost::math::gcd_evaluator< IntegerType >
 
singleton  boost::math::lcm_evaluator< IntegerType >
 
struct  boost::math::detail::gcd_optimal_evaluator_helper_t< T, IsSpecialized, IsSigned >
 
struct  boost::math::detail::gcd_optimal_evaluator_helper_t< T, true, true >
 
struct  boost::math::detail::gcd_optimal_evaluator< T >
 
struct  boost::math::detail::gcd_optimal_evaluator< unsigned char >
 
struct  boost::math::detail::gcd_optimal_evaluator< unsigned short >
 
struct  boost::math::detail::gcd_optimal_evaluator< unsigned >
 
struct  boost::math::detail::gcd_optimal_evaluator< unsigned long >
 
struct  boost::math::detail::gcd_optimal_evaluator< char >
 
struct  boost::math::detail::gcd_optimal_evaluator< signed char >
 
struct  boost::math::detail::gcd_optimal_evaluator< short >
 
struct  boost::math::detail::gcd_optimal_evaluator< int >
 
struct  boost::math::detail::gcd_optimal_evaluator< long >
 
struct  boost::math::detail::lcm_optimal_evaluator_helper_t< T, IsSpecialized, IsSigned >
 
struct  boost::math::detail::lcm_optimal_evaluator_helper_t< T, true, true >
 
struct  boost::math::detail::lcm_optimal_evaluator< T >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::math
 
 boost::math::detail
 

Macros

#define BOOST_PRIVATE_GCD_UF(Ut)
 
#define BOOST_PRIVATE_GCD_SF(St, Ut)
 

Functions

template<typename IntegerType >
IntegerType boost::math::gcd (IntegerType const &a, IntegerType const &b)
 
template<typename IntegerType >
IntegerType boost::math::lcm (IntegerType const &a, IntegerType const &b)
 
template<typename RingType >
RingType boost::math::detail::gcd_euclidean (RingType a, RingType b)
 
template<typename IntegerType >
IntegerType boost::math::detail::gcd_integer (IntegerType const &a, IntegerType const &b)
 
template<typename BuiltInUnsigned >
BuiltInUnsigned boost::math::detail::gcd_binary (BuiltInUnsigned u, BuiltInUnsigned v)
 
template<typename RingType >
RingType boost::math::detail::lcm_euclidean (RingType const &a, RingType const &b)
 
template<typename IntegerType >
IntegerType boost::math::detail::lcm_integer (IntegerType const &a, IntegerType const &b)
 
template<typename T >
T boost::math::detail::gcd_optimal (T const &a, T const &b)
 
template<typename T >
T boost::math::detail::lcm_optimal (T const &a, T const &b)
 

Macro Definition Documentation

#define BOOST_PRIVATE_GCD_SF (   St,
  Ut 
)
Value:
template < > struct gcd_optimal_evaluator<St> \
{ St operator ()( St a, St b ) const { Ut const a_abs = \
static_cast<Ut>( a < 0 ? -a : +a ), b_abs = static_cast<Ut>( \
b < 0 ? -b : +b ); return static_cast<St>( \
gcd_optimal_evaluator<Ut>()(a_abs, b_abs) ); } }
Allocator Allocator a
Definition: function_template.hpp:727
result_type operator()()
Definition: bind_template.hpp:17
basic_streambuf< Allocator > & b
Definition: read.hpp:555
#define BOOST_PRIVATE_GCD_UF (   Ut)
Value:
template < > struct gcd_optimal_evaluator<Ut> \
{ Ut operator ()( Ut a, Ut b ) const { return gcd_binary( a, b ); } }
Allocator Allocator a
Definition: function_template.hpp:727
result_type operator()()
Definition: bind_template.hpp:17
basic_streambuf< Allocator > & b
Definition: read.hpp:555
BuiltInUnsigned gcd_binary(BuiltInUnsigned u, BuiltInUnsigned v)
Definition: common_factor_rt.hpp:131