piranha  0.10
Public Member Functions | List of all members
piranha::math::is_unitary_impl< mp_integer< SSize > > Struct Template Reference

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

#include <piranha/mp_integer.hpp>

Public Member Functions

bool operator() (const mp_integer< SSize > &n) const
 Call operator. More...
 

Detailed Description

template<std::size_t SSize>
struct piranha::math::is_unitary_impl< mp_integer< SSize > >

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

Definition at line 142 of file mp_integer.hpp.

Member Function Documentation

◆ operator()()

template<std::size_t SSize>
bool piranha::math::is_unitary_impl< mp_integer< SSize > >::operator() ( const mp_integer< SSize > &  n) const
inline

Call operator.

This implementation will use internally piranha::mp_integer::is_one().

Parameters
npiranha::mp_integer to be tested.
Returns
true if n is equal to 1, false otherwise.

Definition at line 151 of file mp_integer.hpp.


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