CGAL 5.1 - Polynomial
PolynomialTraits_d::Swap Class Reference

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

Definition

This AdaptableFunctor swaps two variables of a multivariate polynomial.

Refines:

AdaptableFunctor

CopyConstructible

DefaultConstructible

See also
Polynomial_d
PolynomialTraits_d

Types

typedef PolynomialTraits_d::Polynomial_d result_type
 

Operations

result_type operator() (PolynomialTraits_d::Polynomial_d p, int i, int j)
 Returns polynomial \( p\) with interchanged variables \( x_i\), \( x_j\). More...
 

Member Typedef Documentation

◆ result_type

typedef PolynomialTraits_d::Polynomial_d PolynomialTraits_d::Swap::result_type

Member Function Documentation

◆ operator()()

result_type PolynomialTraits_d::Swap::operator() ( PolynomialTraits_d::Polynomial_d  p,
int  i,
int  j 
)

Returns polynomial \( p\) with interchanged variables \( x_i\), \( x_j\).

Precondition
\( 0 \leq i < d\).
\( 0 \leq j < d\).