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

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

#include <piranha/real.hpp>

Public Member Functions

real operator() (const real &r, const real &x) const
 Call operator, real–real overload. More...
 
template<typename T2 >
real operator() (const real &r, const T2 &x) const
 Call operator, real base overload. More...
 
template<typename T2 >
real operator() (const T2 &r, const real &x) const
 Call operator, real exponent overload. More...
 

Detailed Description

template<typename T, typename U>
struct piranha::math::pow_impl< T, U, detail::real_pow_enabler< T, U > >

Specialisation of the piranha::math::pow() 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 1956 of file real.hpp.

Member Function Documentation

◆ operator()() [1/3]

template<typename T , typename U >
real piranha::math::pow_impl< T, U, detail::real_pow_enabler< T, U > >::operator() ( const real r,
const real x 
) const
inline

Call operator, real–real overload.

Parameters
rbase.
xexponent.
Returns
r to the power of x.
Exceptions
unspecifiedany exception thrown by piranha::real::pow().

Definition at line 1966 of file real.hpp.

◆ operator()() [2/3]

template<typename T , typename U >
template<typename T2 >
real piranha::math::pow_impl< T, U, detail::real_pow_enabler< T, U > >::operator() ( const real r,
const T2 &  x 
) const
inline

Call operator, real base overload.

Parameters
rbase.
xexponent.
Returns
r to the power of x.
Exceptions
unspecifiedany exception thrown by piranha::real::pow() or by the invoked piranha::real constructor.

Definition at line 1981 of file real.hpp.

◆ operator()() [3/3]

template<typename T , typename U >
template<typename T2 >
real piranha::math::pow_impl< T, U, detail::real_pow_enabler< T, U > >::operator() ( const T2 &  r,
const real x 
) const
inline

Call operator, real exponent overload.

Parameters
rbase.
xexponent.
Returns
r to the power of x.
Exceptions
unspecifiedany exception thrown by piranha::real::pow() or by the invoked piranha::real constructor.

Definition at line 1998 of file real.hpp.


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