Concept

PolynomialTraits_d::Shift

Definition

This AdaptableBinaryFunction multiplies a 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.

Refines

AdaptableBinaryFunction
CopyConstructible
DefaultConstructible

Types

typedef PolynomialTraits_d::Polynomial_d
result_type;

typedef PolynomialTraits_d::Polynomial_d
first_argument_type;

typedef int second_argument_type;

Operations

result_type fo ( first_argument_type p , second_argument_type e )
Returns p * xd-1e.
Precondition: 0 e

result_type fo ( first_argument_type p , second_argument_type e , int i )
Returns p * xie.
Precondition: 0 e
Precondition: 0 i < d

See Also

Polynomial_d
PolynomialTraits_d