Processing math: 9%
 
CGAL 6.1 - Polynomial
All Classes Namespaces Functions Typedefs Pages
Loading...
Searching...
No Matches
PolynomialTraits_d::Invert Class Reference

#include <Concepts/PolynomialTraits_d--Invert.h>

Definition

This AdaptableUnaryFunction inverts one variable in a given PolynomialTraits_d::Polynomial_d, that is, for a given polynomial p it computes x^{degree(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
CopyConstructible
DefaultConstructible
See also
Polynomial_d
PolynomialTraits_d

Types

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

Operations

result_type operator() (argument_type p)
 Returns x^{degree(p)}p(1/x), where x refers to the outermost variable x_{d-1}.
 
result_type operator() (argument_type p, int i)
 Return x^{degree(p,i)}p(1/x), where x refers to the variable x_{i}.
 

Member Typedef Documentation

◆ argument_type

typedef PolynomialTraits_d::Polynomial_d PolynomialTraits_d::Invert::argument_type

◆ result_type

typedef PolynomialTraits_d::Polynomial_d PolynomialTraits_d::Invert::result_type

Member Function Documentation

◆ operator()() [1/2]

result_type PolynomialTraits_d::Invert::operator() ( argument_type  p)

Returns x^{degree(p)}p(1/x), where x refers to the outermost variable x_{d-1}.

◆ operator()() [2/2]

result_type PolynomialTraits_d::Invert::operator() ( argument_type  p,
int  i 
)

Return x^{degree(p,i)}p(1/x), where x refers to the variable x_{i}.

Precondition
0 \leq i < d.