Registry / other / knncolle-annoy

knncolle-annoy

JSON →
library0.3.0vcpkgunverified

knncolle bindings for Annoy search, providing approximate nearest neighbor search.

vcpkg install knncolle-annoy
INSTALL
IMPORT
SIG · KNNCOLLE-ANNOY
K
knncolle-annoy
othercppv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

knncolle_annoy/knncolle_annoy.hpp
#include <knncolle_annoy/knncolle_annoy.hpp>

Builds an Annoy index and finds nearest neighbors.

#include <knncolle_annoy/knncolle_annoy.hpp> #include <vector> #include <iostream> int main() { std::vector<double> data = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}; knncolle_annoy::AnnoyBuilder<double> builder; auto index = builder.build(3, 2, data.data()); auto results = index->find_nearest_neighbors(0, 2); for (auto& r : results) { std::cout << "Index: " << r.first << ", Distance: " << r.second << "\n"; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

knncolle-annoy — pip install knncolle-annoy · libregistry