diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-07 10:31:11 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-07 10:31:11 +0200 |
commit | 9922407fe6f5d8872522157555c3573e95930ac3 (patch) | |
tree | e5f71dc94fe0d0a2f570c40b2624a371fcf3cb23 /src/Alpha_complex/include/gudhi | |
parent | da3debd6896830592bc305bc688431d09539014e (diff) |
Fix compilation error and test with 0. weights
Diffstat (limited to 'src/Alpha_complex/include/gudhi')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h index 87604ec4..a3e3845a 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h @@ -71,8 +71,7 @@ class Alpha_kernel_d<Kernel, false> { return sph.second; } - template<class Point> - Point get_circumcenter(const Sphere& sph) const { + auto get_circumcenter(const Sphere& sph) const { return sph.first; } @@ -117,13 +116,11 @@ class Alpha_kernel_d<Kernel, true> { return sph.weight(); } - template<class Point> - Point get_circumcenter(const Sphere& sph) const { - return sph.point(); + auto get_circumcenter(const Sphere& sph) const { + return sph; } - template<class Point> - FT get_squared_distance(const Point& first, const Point& second) const { + FT get_squared_distance(const Weighted_point_d& first, const Weighted_point_d& second) const { return kernel_.power_distance_d_object()(first, second); } }; |