Merge pull request #4081 from mglisse/NewKernel_d-loopinv-glisse

Move store outside the loop.
This commit is contained in:
Sebastien Loriot 2019-07-19 15:37:24 +02:00 committed by GitHub
commit 4f62fd0321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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);;

View File

@ -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);;