CGAL 5.6.1  Polynomial

This AdaptableFunctor
computes a squarefree factorization up to a constant factor (utcf) of a PolynomialTraits_d::Polynomial_d
.
A polynomial \( p\) is factored into squarefree and pairwise coprime nonconstant factors \( g_i\) with multiplicities \( m_i\), such that \( a \cdot p = g_1^{m_1} \cdot ... \cdot g_n^{m_n}\), where \( a\) is some constant factor.
The pairs \( (g_i,m_i)\) are written into the given output iterator.
The constant factor \( a\) is not computed.
This functor is well defined even though PolynomialTraits_d::Innermost_coefficient_type
may not be a UniqueFactorizationDomain
.
Operations  
template<class OutputIterator >  
OutputIterator  operator() (PolynomialTraits_d::Polynomial_d p, OutputIterator it) 
Computes the squarefree factorization of \( p\) and returns the pasttheend iterator of the written range. More...  
OutputIterator PolynomialTraits_d::SquareFreeFactorizeUpToConstantFactor::operator()  (  PolynomialTraits_d::Polynomial_d  p, 
OutputIterator  it  
) 
Computes the squarefree factorization of \( p\) and returns the pasttheend iterator of the written range.
std::iterator_traits< OutputIterator >::value_type
must be constructible from std::pair<PolynomialTraits_d::Polynomial_d,int>
.