Replace ?: with 'if' for expression templates.

This commit is contained in:
Marc Glisse 2016-10-15 19:48:25 +02:00
parent 3816bc4e4b
commit 1c6cf4b557
1 changed files with 4 additions and 1 deletions

View File

@ -134,7 +134,10 @@ NT prs_resultant_ufd(Polynomial<NT> A, Polynomial<NT> B) {
delta = A.degree();
g = B.lcoeff();
internal::hgdelta_update(h, g, delta);
h = signflip ? -(t*h) : t*h;
if (signflip)
h = -(t*h);
else
h = t*h;
typename Algebraic_structure_traits<NT>::Simplify simplify;
simplify(h);
return h;