mirror of https://github.com/CGAL/cgal
casts for dealing with expression templates
This commit is contained in:
parent
694099b6ec
commit
8981c376d3
|
|
@ -3822,9 +3822,9 @@ public:
|
|||
else {
|
||||
ys_end = m_nt_traits->solve_quadratic_equation(Integer(four*r*s*s - s*t*t),
|
||||
Integer(four*r*s*v - two*s*t*u),
|
||||
Integer(r*v*v - t*u*v) +
|
||||
Integer(t*t*w),
|
||||
Integer((r*v*v - t*u*v) + (t*t*w)),
|
||||
ys);
|
||||
|
||||
n_ys = static_cast<int>(ys_end - ys);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -922,7 +922,7 @@ BigInt Polynomial<NT>::CauchyBound() const {
|
|||
/* compute B^{deg} */
|
||||
if (rhs <= lhs) {
|
||||
B <<= 1;
|
||||
rhs *= (BigInt(1)<<deg);
|
||||
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
|
||||
} else
|
||||
break;
|
||||
}
|
||||
|
|
@ -959,7 +959,7 @@ BigInt Polynomial<NT>::UpperBound() const {
|
|||
/* compute B^{deg} */
|
||||
if (rhs <= (std::max)(lhsPos,lhsNeg)) {
|
||||
B <<= 1;
|
||||
rhs *= (BigInt(1)<<deg);
|
||||
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
|
||||
} else
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue