summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
diff options
context:
space:
mode:
authorfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-11-28 15:25:17 +0000
committerfgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-11-28 15:25:17 +0000
commit7449716dca77dd81759d024ae1e9dbfcfeb202e7 (patch)
tree732c2dfbb4a2a1d8cfd1646c422aa44d778c72fc /src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
parentb0c33669d948f25c413a67991f8ae03e854892a8 (diff)
compute and compute_exactly merged
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bottleneck_integration@1792 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 7c4e66f5449759f7d99319ca14989b2d74e96e20
Diffstat (limited to 'src/Bottleneck_distance/include/gudhi/Neighbors_finder.h')
-rw-r--r--src/Bottleneck_distance/include/gudhi/Neighbors_finder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h b/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
index f28e21a2..90ddabef 100644
--- a/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
+++ b/src/Bottleneck_distance/include/gudhi/Neighbors_finder.h
@@ -122,8 +122,8 @@ inline int Neighbors_finder::pull_near(int u_point_index) {
else{
//Is the query point near to a V point in the plane ?
Internal_point u_point = g.get_u_point(u_point_index);
- std::vector<double> w = {1., 1.};
- K_neighbor_search search(kd_t, u_point, 0., true, Distance(0, 2, w));
+ std::array<double, 2> w = { {1., 1.} };
+ K_neighbor_search search(kd_t, u_point, 0., true, Distance(0, 2, w.begin(), w.end()));
auto it = search.begin();
if(it==search.end() || g.distance(u_point_index, it->first.point_index) > r)
return null_point_index();