CGAL 5.1 - Polynomial
PolynomialTraits_d::Scale Class Reference

#include <Concepts/PolynomialTraits_d--Scale.h>

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\cdot 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

CopyConstructible

DefaultConstructible

See also
Polynomial_d
PolynomialTraits_d

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 operator() (first_argument_type p, second_argument_type c)
 Returns \( p(c\cdot x)\), with respect to the outermost variable. More...
 
result_type operator() (first_argument_type p, second_argument_type c, int i)
 Same as first operator but for variable \( x_i\). More...
 

Member Typedef Documentation

◆ first_argument_type

typedef PolynomialTraits_d::Polynomial_d PolynomialTraits_d::Scale::first_argument_type

◆ result_type

typedef PolynomialTraits_d::Polynomial_d PolynomialTraits_d::Scale::result_type

◆ second_argument_type

typedef PolynomialTraits_d::Innermost_coefficient_type PolynomialTraits_d::Scale::second_argument_type

Member Function Documentation

◆ operator()() [1/2]

result_type PolynomialTraits_d::Scale::operator() ( first_argument_type  p,
second_argument_type  c 
)

Returns \( p(c\cdot x)\), with respect to the outermost variable.

◆ operator()() [2/2]

result_type PolynomialTraits_d::Scale::operator() ( first_argument_type  p,
second_argument_type  c,
int  i 
)

Same as first operator but for variable \( x_i\).

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