This AdaptableFunctor permutes the variables of the given polynomial with respect to a permutation σ, that is, each monomial ∏x_{i}^{ei} will be mapped to the monomial ∏x_{σ(i)}^{ei}. The permutation σ is given by the iterator range of length PolynomialTraits_d::d, which is supposed to contain the second row of the permutation.
For instance, let p be a polynomial in 4 variables and it is intended to change the order of the variables such that x_{0} ↦ x_{2}, x_{1} ↦ x_{0}, x_{2} ↦ x_{1} and x_{3} ↦ x_{3}. In this case the iterator range should contain the sequence [2,0,1,3].
AdaptableFunctor
 

 

 
Returns p with interchanged variables as defined by the iterator range.

Polynomial_d
PolynomialTraits_d