From 93ba0ccfc840be5c0062e8d997eebf03a86200e2 Mon Sep 17 00:00:00 2001 From: Masajiro Iwasaki Date: Thu, 9 Nov 2023 10:16:33 +0900 Subject: [PATCH] fix the issue #153 --- VERSION | 2 +- lib/NGT/NGTQ/QuantizedGraph.h | 2 +- python/setup.py | 8 ++++---- samples/qg-l2-float/qg-l2-float.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index ac2cdeb..7d2ed7c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.3 +2.1.4 diff --git a/lib/NGT/NGTQ/QuantizedGraph.h b/lib/NGT/NGTQ/QuantizedGraph.h index 847ab94..f7ce6cf 100644 --- a/lib/NGT/NGTQ/QuantizedGraph.h +++ b/lib/NGT/NGTQ/QuantizedGraph.h @@ -87,7 +87,7 @@ namespace NGTQG { PARENT::resize(graphRepository.size()); for (size_t id = 1; id < graphRepository.size(); id++) { - if ((graphRepository.size() > 100) && id % (((graphRepository.size() - 1) / 100) == 0)) { + if ((graphRepository.size() > 100) && (id % ((graphRepository.size() - 1) / 100) == 0)) { std::cerr << "# of processed objects=" << id << "/" << (graphRepository.size() - 1) << "(" << id * 100 / (graphRepository.size() - 1) << "%)" << std::endl; } diff --git a/python/setup.py b/python/setup.py index 21abc29..90f4b66 100644 --- a/python/setup.py +++ b/python/setup.py @@ -36,8 +36,8 @@ print('use the NGT static library with avx2') sys.argv.remove(static_library_avx2_option) static_library_avx2 = True - package = 'ngt_qbg' - module = 'ngtpy_qbg' + package = 'ngt_avx2' + module = 'ngtpy_avx2' included_library = False if included_library_option in sys.argv: @@ -62,8 +62,8 @@ print('use the shared library with avx2') sys.argv.remove(shared_library_avx2_option) shared_library_avx2 = True - package = 'ngt_qbg' - module = 'ngtpy_qbg' + package = 'ngt_avx2' + module = 'ngtpy_avx2' if sys.version_info.major >= 3: from setuptools import Extension diff --git a/samples/qg-l2-float/qg-l2-float.cpp b/samples/qg-l2-float/qg-l2-float.cpp index 4ce5ca7..2c76eaa 100644 --- a/samples/qg-l2-float/qg-l2-float.cpp +++ b/samples/qg-l2-float/qg-l2-float.cpp @@ -67,7 +67,7 @@ main(int argc, char **argv) // nearest neighbor search try { - NGT::Index index(indexPath); + NGTQG::Index index(indexPath); NGT::Property property; index.getProperty(property); ifstream is(queryFile); @@ -90,7 +90,7 @@ main(int argc, char **argv) cout << "..."; } - NGT::SearchQuery sc(query); + NGTQG::SearchQuery sc(query); NGT::ObjectDistances objects; sc.setResults(&objects); sc.setSize(10);