piranha
0.10
|
Toolbox for series suitable for integral power substitution. More...
#include <piranha/ipow_substitutable_series.hpp>
Inherits Series, and ipow_substitutable_series_tag.
Public Member Functions | |
ipow_substitutable_series ()=default | |
Defaulted default constructor. | |
ipow_substitutable_series (const ipow_substitutable_series &)=default | |
Defaulted copy constructor. | |
ipow_substitutable_series (ipow_substitutable_series &&)=default | |
Defaulted move constructor. | |
ipow_substitutable_series & | operator= (const ipow_substitutable_series &other)=default |
Copy assignment operator. More... | |
ipow_substitutable_series & | operator= (ipow_substitutable_series &&other)=default |
Defaulted move assignment operator. More... | |
~ipow_substitutable_series () | |
Trivial destructor. | |
template<typename T > | |
ipow_subs_type< T > | ipow_subs (const std::string &name, const integer &n, const T &x) const |
Substitution. More... | |
template<typename T , typename Int , ipow_subs_int_enabler< Int > = 0> | |
ipow_subs_type< T > | ipow_subs (const std::string &name, const Int &n, const T &x) const |
Substitution. More... | |
Toolbox for series suitable for integral power substitution.
This toolbox will conditionally augment a Series
type by adding methods to subtitute integral powers of symbols with generic objects. Such augmentation takes place if the series' coefficient and/or key types expose substitution methods (as established by the piranha::has_ipow_subs and piranha::key_has_ipow_subs type traits). If the requirements outlined above are not satisfied, the substitution methods will be disabled.
This class satisfies the piranha::is_series type trait.
Series
must satisfy the piranha::is_series type trait,Derived
must derive from piranha::ipow_substitutable_series of Series
and Derived
.This class provides the same guarantee as Series
.
Move semantics is equivalent to the move semantics of Series
.
Definition at line 75 of file ipow_substitutable_series.hpp.
|
inline |
Substitution.
This method will return an object resulting from the substitution of the integral power of the symbol called name
in this
with the generic object x
.
name | name of the symbol to be substituted. |
n | integral power of the symbol to be substituted. |
x | object used for the substitution. |
unspecified | any exception resulting from:
|
Definition at line 224 of file ipow_substitutable_series.hpp.
|
inline |
Substitution.
Int
is a C++ integral type.This is a convenience method that will call the other ipow_subs() overload after converting n
to piranha::integer.
name | name of the symbol to be substituted. |
n | integral power of the symbol to be substituted. |
x | object used for the substitution. |
unspecified | any exception resulting from calling the other ipow_subs() overload, or by constructing a piranha::integer from a C++ integral type. |
Definition at line 252 of file ipow_substitutable_series.hpp.
|
default |
Copy assignment operator.
other | the assignment argument. |
this
.unspecified | any exception thrown by the assignment operator of the base class. |
|
default |
Defaulted move assignment operator.
other | the assignment argument. |
this
.