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

Specialisation of the implementation of piranha::math::binomial() for piranha::mp_rational. More...

#include <piranha/mp_rational.hpp>

Public Member Functions

ret_type operator() (const T &x, const U &y) const
 Call operator. More...
 

Detailed Description

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

Specialisation of the implementation of piranha::math::binomial() for piranha::mp_rational.

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

The implementation follows these rules:

Definition at line 2119 of file mp_rational.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename U >
ret_type piranha::math::binomial_impl< T, U, math_rational_binomial_enabler< T, U > >::operator() ( const T &  x,
const U &  y 
) const
inline

Call operator.

Parameters
xtop argument.
ybottom argument.
Returns
\( x \choose y \).
Exceptions
unspecifiedany exception thrown by:

Definition at line 2161 of file mp_rational.hpp.


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