mirror of https://github.com/CGAL/cgal
Innermost_coefficient_to_polynomial functor replaced by simple constructor call because functor does not exist.
This commit is contained in:
parent
42934cc135
commit
b7e836a3f6
|
|
@ -133,14 +133,15 @@ namespace INTERN_POLYNOMIAL {
|
|||
typedef Polynomial<NT> POLY;
|
||||
typedef typename Polynomial_traits_d<POLY>::Innermost_coefficient IC;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_leading_coefficient ilcoeff;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_coefficient_to_polynomial ictp;
|
||||
//typename Polynomial_traits_d<POLY>::Innermost_coefficient_to_polynomial ictp;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_coefficient_begin begin;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_coefficient_end end;
|
||||
typename Algebraic_extension_traits<IC>::Denominator_for_algebraic_integers dfai;
|
||||
|
||||
IC tmp = ilcoeff(g);
|
||||
tmp *= dfai(begin(g), end(g));
|
||||
f *= ictp(tmp);
|
||||
//f *= ictp(tmp);
|
||||
f *= POLY(tmp);
|
||||
return canonicalize_polynomial(f / g);
|
||||
}
|
||||
|
||||
|
|
@ -177,14 +178,15 @@ namespace INTERN_POLYNOMIAL {
|
|||
typedef Polynomial<NT> POLY;
|
||||
typedef typename Polynomial_traits_d<POLY>::Innermost_coefficient IC;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_leading_coefficient ilcoeff;
|
||||
typename Polynomial_traits_d<POLY>::Innermost_coefficient_to_polynomial ictp;
|
||||
//typename Polynomial_traits_d<POLY>::Innermost_coefficient_to_polynomial ictp;
|
||||
typename Polynomial_traits_d<NT>::Innermost_coefficient_begin begin;
|
||||
typename Polynomial_traits_d<NT>::Innermost_coefficient_end end;
|
||||
typename Algebraic_extension_traits<IC>::Denominator_for_algebraic_integers dfai;
|
||||
|
||||
IC tmp = ilcoeff(g);
|
||||
tmp *= dfai(begin(g), end(g));
|
||||
f *= ictp(tmp);
|
||||
//f *= ictp(tmp);
|
||||
f *= POLY(tmp);
|
||||
return canonicalize_polynomial(f / g);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue