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

Specialisation of the piranha::math::binomial() functor for piranha::real. More...

#include <piranha/real.hpp>

Public Member Functions

real operator() (const real &x, const real &y) const
 Call operator, real–real overload. More...
 
template<typename T2 >
real operator() (const real &x, const T2 &y) const
 Call operator, real top overload. More...
 
template<typename T2 >
real operator() (const T2 &x, const real &y) const
 Call operator, real bottom overload. More...
 

Detailed Description

template<typename T, typename U>
struct piranha::math::binomial_impl< T, U, detail::real_binomial_enabler< T, U > >

Specialisation of the piranha::math::binomial() functor for piranha::real.

This specialisation is activated when one of the arguments is piranha::real and the other is either piranha::real or an interoperable type for piranha::real.

The implementation follows these rules:

Definition at line 2077 of file real.hpp.

Member Function Documentation

◆ operator()() [1/3]

template<typename T , typename U >
real piranha::math::binomial_impl< T, U, detail::real_binomial_enabler< T, U > >::operator() ( const real x,
const real y 
) const
inline

Call operator, real–real overload.

Parameters
xtop.
ybottom.
Returns
x choose y.
Exceptions
unspecifiedany exception thrown by piranha::real::binomial().

Definition at line 2087 of file real.hpp.

◆ operator()() [2/3]

template<typename T , typename U >
template<typename T2 >
real piranha::math::binomial_impl< T, U, detail::real_binomial_enabler< T, U > >::operator() ( const real x,
const T2 &  y 
) const
inline

Call operator, real top overload.

Parameters
xtop.
ybottom.
Returns
x choose y.
Exceptions
unspecifiedany exception thrown by piranha::real::binomial() or by the invoked piranha::real constructor.

Definition at line 2102 of file real.hpp.

◆ operator()() [3/3]

template<typename T , typename U >
template<typename T2 >
real piranha::math::binomial_impl< T, U, detail::real_binomial_enabler< T, U > >::operator() ( const T2 &  x,
const real y 
) const
inline

Call operator, real bottom overload.

Parameters
xtop.
ybottom.
Returns
x choose y.
Exceptions
unspecifiedany exception thrown by piranha::real::binomial() or by the invoked piranha::real constructor.

Definition at line 2119 of file real.hpp.


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