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

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

#include <piranha/binomial.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, integer_binomial_enabler< T, U > >

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

This specialisation is activated when:

The implementation follows these rules:

Definition at line 255 of file binomial.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename U >
ret_type piranha::math::binomial_impl< T, U, integer_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 piranha::mp_integer::binomial() or piranha::math::binomial().

Definition at line 300 of file binomial.hpp.


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