Concept

PolynomialTraits_d::SignAtHomogeneous

Definition

This AdaptableFunctor returns the sign of a PolynomialTraits_d::Polynomial_d p at a given homogeneous point, which is given by an iterator range.

The polynomial is interpreted as a homogeneous polynomial in all variables.
For instance the polynomial p(x0,x1) = x02x13+x14 is interpreted as the homogeneous polynomial p(x0,x1,w) = x02x13+x14w1.

This functor is well defined if PolynomialTraits_d::Innermost_coefficient_type is RealEmbeddable.

Refines

AdaptableFunctor
CopyConstructible
DefaultConstructible

Types

typedef CGAL::Sign result_type;

Operations

template <class InputIterator>
result_type fo ( PolynomialTraits_d::Polynomial_d p , InputIterator begin , InputIterator end )
Returns the sign of p at the given homogeneous point, where begin is referring to the innermost variable.
Precondition: (end-begin==PolynomialTraits_d::d+1)
Precondition: std::iterator_traits< InputIterator >::value_type is ExplicitInteroperable with PolynomialTraits_d::Innermost_coefficient_type.

See Also

Polynomial_d
PolynomialTraits_d