Skip to content

Commit

Permalink
Remove debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 29, 2020
1 parent 09b35c3 commit c3d92d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vendor/nanoflann/nanoflann.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#ifndef NANOFLANN_HPP_
#define NANOFLANN_HPP_

#include <iostream>
#include <algorithm>
#include <array>
#include <cassert>
Expand Down Expand Up @@ -768,7 +767,6 @@ class KDTreeBaseClass {
*/
lim1 = left;
right = count - 1;
std::cerr << "Left/Right = " << left << "/" << right << "!\n";
for (;;) {
while (left <= right && dataset_get(obj, ind[left], cutfeat) <= cutval)
++left;
Expand Down Expand Up @@ -1085,13 +1083,11 @@ class KDTreeSingleIndexAdaptor
// count_leaf += (node->lr.right-node->lr.left); // Removed since was
// neither used nor returned to the user.
DistanceType worst_dist = result_set.worstDist();
std::cerr << "worst_dist = " << worst_dist << "!\n";
for (IndexType i = node->node_type.lr.left; i < node->node_type.lr.right;
++i) {
const IndexType index = BaseClassRef::vind[i]; // reorder... : i;
DistanceType dist = distance.evalMetric(
vec, index, (DIM > 0 ? DIM : BaseClassRef::dim));
std::cerr << "Dist = " << dist << "!\n";
if (dist < worst_dist) {
if (!result_set.addPoint(dist, BaseClassRef::vind[i])) {
// the resultset doesn't want to receive any more points, we're done
Expand Down Expand Up @@ -1121,7 +1117,6 @@ std::cerr << "Dist = " << dist << "!\n";
otherChild = node->child1;
cut_dist = distance.accum_dist(val, node->node_type.sub.divlow, idx);
}
std::cerr << "Cut dist = " << cut_dist << "!\n";

/* Call recursively to search next level down. */
if (!searchLevel(result_set, vec, bestChild, mindistsq, dists, epsError)) {
Expand Down

0 comments on commit c3d92d6

Please sign in to comment.