PolynomialTraits_d::Scale

Definition

Given a constant c this AdaptableBinaryFunction scales a PolynomialTraits_d::Polynomial_d p with respect to one variable, that is, it computes p(c · x).

Note that this functor operates on the polynomial in the univariate view, that is, the polynomial is considered as a univariate polynomial in one specific variable.

Refines

AdaptableBinaryFunction

Types

typedef PolynomialTraits_d::Polynomial_d
result_type;
typedef PolynomialTraits_d::Polynomial_d
first_argument_type;
typedef PolynomialTraits_d::Innermost_coefficient_type
second_argument_type;

Operations

result_type fo ( first_argument_type p , second_argument_type c )
Returns p(c · x), with respect to the outermost variable.

result_type fo ( first_argument_type p , second_argument_type c , int i )
Same as first operator but for variable xi.
Precondition: 0 i < d

See Also

Polynomial_d
PolynomialTraits_d