mirror of https://github.com/CGAL/cgal
Merge pull request #4081 from mglisse/NewKernel_d-loopinv-glisse
Move store outside the loop.
This commit is contained in:
commit
4f62fd0321
|
|
@ -186,11 +186,10 @@ template <class R_> struct Power_center : Store_kernel<R_> {
|
||||||
for(i=0; ++f!=e; ++i) {
|
for(i=0; ++f!=e; ++i) {
|
||||||
WPoint const& wp=*f;
|
WPoint const& wp=*f;
|
||||||
Point const& p=pdw(wp);
|
Point const& p=pdw(wp);
|
||||||
FT const& np = sdo(p) - pw(wp);
|
|
||||||
for(int j=0;j<d;++j) {
|
for(int j=0;j<d;++j) {
|
||||||
m(i,j)=2*(c(p,j)-c(p0,j));
|
m(i,j)=2*(c(p,j)-c(p0,j));
|
||||||
b[i] = np - n0;
|
|
||||||
}
|
}
|
||||||
|
b[i] = sdo(p) - pw(wp) - n0;
|
||||||
}
|
}
|
||||||
CGAL_assertion (i == d);
|
CGAL_assertion (i == d);
|
||||||
Vec res = typename CVec::Dimension()(d);;
|
Vec res = typename CVec::Dimension()(d);;
|
||||||
|
|
|
||||||
|
|
@ -640,8 +640,8 @@ template <class R_> struct Construct_circumcenter : Store_kernel<R_> {
|
||||||
Point const& p=*f;
|
Point const& p=*f;
|
||||||
for(int j=0;j<d;++j) {
|
for(int j=0;j<d;++j) {
|
||||||
m(i,j)=2*(c(p,j)-c(p0,j));
|
m(i,j)=2*(c(p,j)-c(p0,j));
|
||||||
b[i] = sdo(p) - n0;
|
|
||||||
}
|
}
|
||||||
|
b[i] = sdo(p) - n0;
|
||||||
}
|
}
|
||||||
CGAL_assertion (i == d);
|
CGAL_assertion (i == d);
|
||||||
Vec res = typename CVec::Dimension()(d);;
|
Vec res = typename CVec::Dimension()(d);;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue