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 {
|
else {
|
||||||
ys_end = m_nt_traits->solve_quadratic_equation(Integer(four*r*s*s - s*t*t),
|
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(four*r*s*v - two*s*t*u),
|
||||||
Integer(r*v*v - t*u*v) +
|
Integer((r*v*v - t*u*v) + (t*t*w)),
|
||||||
Integer(t*t*w),
|
|
||||||
ys);
|
ys);
|
||||||
|
|
||||||
n_ys = static_cast<int>(ys_end - ys);
|
n_ys = static_cast<int>(ys_end - ys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -922,7 +922,7 @@ BigInt Polynomial<NT>::CauchyBound() const {
|
||||||
/* compute B^{deg} */
|
/* compute B^{deg} */
|
||||||
if (rhs <= lhs) {
|
if (rhs <= lhs) {
|
||||||
B <<= 1;
|
B <<= 1;
|
||||||
rhs *= (BigInt(1)<<deg);
|
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -959,7 +959,7 @@ BigInt Polynomial<NT>::UpperBound() const {
|
||||||
/* compute B^{deg} */
|
/* compute B^{deg} */
|
||||||
if (rhs <= (std::max)(lhsPos,lhsNeg)) {
|
if (rhs <= (std::max)(lhsPos,lhsNeg)) {
|
||||||
B <<= 1;
|
B <<= 1;
|
||||||
rhs *= (BigInt(1)<<deg);
|
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue