piranha  0.10
Public Member Functions | List of all members
piranha::math::gcd_impl< T, U, math_mp_integer_gcd_enabler< T, U > > Struct Template Reference

Specialisation of the implementation of piranha::math::gcd() for piranha::mp_integer. More...

#include <piranha/mp_integer.hpp>

Public Member Functions

template<std::size_t SSize>
mp_integer< SSize > operator() (const mp_integer< SSize > &a, const mp_integer< SSize > &b) const
 Call operator, piranha::mp_integer - piranha::mp_integer overload. More...
 
template<std::size_t SSize, typename T1 >
mp_integer< SSize > operator() (const mp_integer< SSize > &a, const T1 &b) const
 Call operator, piranha::mp_integer - integral overload. More...
 
template<std::size_t SSize, typename T1 >
mp_integer< SSize > operator() (const T1 &a, const mp_integer< SSize > &b) const
 Call operator, integral - piranha::mp_integer overload. More...
 

Detailed Description

template<typename T, typename U>
struct piranha::math::gcd_impl< T, U, math_mp_integer_gcd_enabler< T, U > >

Specialisation of the implementation of piranha::math::gcd() for piranha::mp_integer.

This specialisation is enabled when:

The result will be calculated via piranha::mp_integer::gcd(const mp_integer &, const mp_integer &), after any necessary type conversion.

Definition at line 423 of file mp_integer.hpp.

Member Function Documentation

◆ operator()() [1/3]

template<typename T , typename U >
template<std::size_t SSize>
mp_integer<SSize> piranha::math::gcd_impl< T, U, math_mp_integer_gcd_enabler< T, U > >::operator() ( const mp_integer< SSize > &  a,
const mp_integer< SSize > &  b 
) const
inline

Call operator, piranha::mp_integer - piranha::mp_integer overload.

Parameters
afirst argument.
bsecond argument.
Returns
the GCD of a and b.

Definition at line 432 of file mp_integer.hpp.

◆ operator()() [2/3]

template<typename T , typename U >
template<std::size_t SSize, typename T1 >
mp_integer<SSize> piranha::math::gcd_impl< T, U, math_mp_integer_gcd_enabler< T, U > >::operator() ( const mp_integer< SSize > &  a,
const T1 &  b 
) const
inline

Call operator, piranha::mp_integer - integral overload.

Parameters
afirst argument.
bsecond argument.
Returns
the GCD of a and b.

Definition at line 444 of file mp_integer.hpp.

◆ operator()() [3/3]

template<typename T , typename U >
template<std::size_t SSize, typename T1 >
mp_integer<SSize> piranha::math::gcd_impl< T, U, math_mp_integer_gcd_enabler< T, U > >::operator() ( const T1 &  a,
const mp_integer< SSize > &  b 
) const
inline

Call operator, integral - piranha::mp_integer overload.

Parameters
afirst argument.
bsecond argument.
Returns
the GCD of a and b.

Definition at line 456 of file mp_integer.hpp.


The documentation for this struct was generated from the following file: