piranha  0.10
Public Member Functions | List of all members
piranha::math::truncate_degree_impl< Series, T, ps_degree_enabler< Series > > Struct Template Reference

Specialisation of the piranha::math::truncate_degree() functor for instances of piranha::power_series. More...

#include <piranha/power_series.hpp>

Public Member Functions

template<typename... Args>
auto operator() (const Series &s, const T &max_degree, const Args &... args) const -> decltype(s.truncate_degree(max_degree, args...))
 Call operator. More...
 

Detailed Description

template<typename Series, typename T>
struct piranha::math::truncate_degree_impl< Series, T, ps_degree_enabler< Series > >

Specialisation of the piranha::math::truncate_degree() functor for instances of piranha::power_series.

This specialisation is activated if Series is an instance of piranha::power_series. If Series does not fulfill the requirements outlined in piranha::power_series, the call operator will be disabled.

Definition at line 626 of file power_series.hpp.

Member Function Documentation

◆ operator()()

template<typename Series , typename T >
template<typename... Args>
auto piranha::math::truncate_degree_impl< Series, T, ps_degree_enabler< Series > >::operator() ( const Series &  s,
const T &  max_degree,
const Args &...  args 
) const -> decltype(s.truncate_degree(max_degree, args...))
inline

Call operator.

If available, it will call piranha::power_series::truncate_degree().

Parameters
sinput power series.
max_degreemaximum degree.
argsadditional arguments that will be passed to the series' method.
Returns
the truncated version of input series s.
Exceptions
unspecifiedany exception thrown by the invoked method of the series.

Definition at line 640 of file power_series.hpp.


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