Skip to content

Commit

Permalink
fix the issue #153
Browse files Browse the repository at this point in the history
  • Loading branch information
masajiro committed Nov 9, 2023
1 parent 10c8e23 commit 93ba0cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.3
2.1.4
2 changes: 1 addition & 1 deletion lib/NGT/NGTQ/QuantizedGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions samples/qg-l2-float/qg-l2-float.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 93ba0cc

Please sign in to comment.