mirror of https://github.com/CGAL/cgal
39 lines
1.2 KiB
TeX
39 lines
1.2 KiB
TeX
\begin{ccRefConcept}{PolynomialTraits_d::Shift}
|
|
\ccDefinition
|
|
|
|
This \ccc{AdaptableFunctor} multiplies a \ccc{PolynomialTraits_d::Polynomial_d} by
|
|
the given power of the specified variable.
|
|
|
|
This functor is provided for efficiency reasons, since multiplication by some variable
|
|
will in general correspond to a shift of coefficients in the internal representation.
|
|
|
|
\ccRefines
|
|
\ccc{AdaptableFunctor}
|
|
|
|
\ccTypes
|
|
\ccCreationVariable{shift}
|
|
\ccSetThreeColumns{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}{xxx}{}
|
|
\ccTypedef{typedef PolynomialTraits_d::Polynomial_d result_type;}{}
|
|
|
|
\ccOperations
|
|
\ccMethod{result_type operator()(PolynomialTraits_d::Polynomial_d p,
|
|
int e);}
|
|
{ return $p * x_{d-1}^e$
|
|
\ccPrecond $0 \leq e$ }
|
|
\ccMethod{result_type operator()(PolynomialTraits_d::Polynomial_d p,
|
|
int e,
|
|
int i);}
|
|
{ Same as first operator but for variable $x_i$.
|
|
\ccPrecond $0 \leq e$
|
|
\ccPrecond $0 \leq i < d$
|
|
}
|
|
|
|
%\ccHasModels
|
|
|
|
\ccSeeAlso
|
|
|
|
\ccRefIdfierPage{Polynomial_d}\\
|
|
\ccRefIdfierPage{PolynomialTraits_d}\\
|
|
|
|
\end{ccRefConcept}
|