提交 feaae93c 编写于 作者: M Marius Muja

Reverting some debug changes

上级 f5fa05cc
...@@ -10,6 +10,7 @@ dist-src: ...@@ -10,6 +10,7 @@ dist-src:
find dist/flann-${VER}-src/src -name '*.dat' -delete find dist/flann-${VER}-src/src -name '*.dat' -delete
rm -rf dist/flann-${VER}-src/src/cpp/tests/test* rm -rf dist/flann-${VER}-src/src/cpp/tests/test*
rm -rf dist/flann-${VER}-src/src/python/_tests rm -rf dist/flann-${VER}-src/src/python/_tests
rm -rf dist/flann-${VER}-src/src/python/build
# cmake dir # cmake dir
cp -r cmake dist/flann-${VER}-src cp -r cmake dist/flann-${VER}-src
# bin dir # bin dir
......
...@@ -59,8 +59,7 @@ struct LinearIndexParams : public IndexParams { ...@@ -59,8 +59,7 @@ struct LinearIndexParams : public IndexParams {
}; };
template <typename Distance> template <typename Distance>
//class LinearIndex : public NNIndex<Distance> class LinearIndex : public NNIndex<Distance>
class LinearIndex
{ {
typedef typename Distance::ElementType ElementType; typedef typename Distance::ElementType ElementType;
typedef typename Distance::ResultType DistanceType; typedef typename Distance::ResultType DistanceType;
...@@ -116,15 +115,7 @@ public: ...@@ -116,15 +115,7 @@ public:
/* nothing to do here for linear search */ /* nothing to do here for linear search */
} }
// void findNeighbors(ResultSet<DistanceType>& resultSet, const ElementType* vec, const SearchParams& searchParams) void findNeighbors(ResultSet<DistanceType>& resultSet, const ElementType* vec, const SearchParams& searchParams)
// {
// for (size_t i=0;i<dataset.rows;++i) {
// DistanceType dist = distance(dataset[i],vec, dataset.cols);
// resultSet.addPoint(dist,i);
// }
// }
void findNeighbors(ResultSet<DistanceType>& resultSet, const ElementType* vec)
{ {
for (size_t i=0;i<dataset.rows;++i) { for (size_t i=0;i<dataset.rows;++i) {
DistanceType dist = distance(dataset[i],vec, dataset.cols); DistanceType dist = distance(dataset[i],vec, dataset.cols);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册