PolynomialTraits_d::Invert

Definition

This AdaptableUnaryFunction inverts one variable in a given PolynomialTraits_d::Polynomial_d, that is, for a given polynomial p it computes xdegree(p)p(1/x).

Note that this functor operates on the polynomial in the univariate view, that is, the polynomial is considered as a univariate polynomial in one specific variable.

This functor is provided for efficiency reasons, since this operation just inverts the order of the coefficients with respect to the specified variable.

Refines

AdaptableUnaryFunction

Types

typedef PolynomialTraits_d::Polynomial_d
result_type;
typedef PolynomialTraits_d::Polynomial_d
argument_type;

Operations

result_type fo ( argument_type p ) Returns xdegree(p)p(1/x), where x refers to the outermost variable xd-1.

result_type fo ( argument_type p , int i ) Return xdegree(p,i)p(1/x), where x refers to the variable xi.
Precondition: 0 i < d

See Also

Polynomial_d
PolynomialTraits_d