CGAL 6.1.2 - Polynomial: PolynomialTraits_d::Move Concept Reference

CGAL 6.1.2 - Polynomial

Loading...
Searching...
No Matches
List of all members
PolynomialTraits_d::Move Concept Reference
Reference Manual » Concepts

## Definition

This `AdaptableFunctor` moves a variable at position \( i\) to a new position \( j\). The relative order of the other variables is preserved, that is, the variables between \( x_i\) and \( x_j\) (including \( x_j\)) are moved by one position while \( x_i\) is moved to the former position of \( x_j\).

This function may be used to make a certain variable the outer most variable.

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, int i, int j)
| This function moves the variable at position \( i\) to its new position \( j\) and returns the new polynomial.

## Member Function Documentation

## ◆ operator()()

result_type PolynomialTraits_d::Move::operator() | ( | PolynomialTraits_d::Polynomial_d | ,
|  | int | i,
|  | int | j
| ) |  |

This function moves the variable at position \( i\) to its new position \( j\) and returns the new polynomial.

The relative order of the other variables is preserved.

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