knncolle_annoy
Annoy nearest neighbors in knncolle
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
knncolle_annoy::AnnoyPrebuilt< Distance_, Dim_, Index_, Float_, InternalIndex_, InternalData_ > Class Template Reference

Prebuilt index for an Annoy search. More...

#include <knncolle_annoy.hpp>

Inheritance diagram for knncolle_annoy::AnnoyPrebuilt< Distance_, Dim_, Index_, Float_, InternalIndex_, InternalData_ >:
knncolle::Prebuilt< Dim_, Index_, Float_ >

Public Member Functions

Dim_ num_dimensions () const
 
Index_ num_observations () const
 
std::unique_ptr< knncolle::Searcher< Index_, Float_ > > initialize () const
 

Friends

class AnnoySearcher< Distance_, Dim_, Index_, Float_, InternalIndex_, InternalData_ >
 

Detailed Description

template<class Distance_, typename Dim_, typename Index_, typename Float_, typename InternalIndex_, typename InternalData_>
class knncolle_annoy::AnnoyPrebuilt< Distance_, Dim_, Index_, Float_, InternalIndex_, InternalData_ >

Prebuilt index for an Annoy search.

Instances of this class are usually constructed using AnnoyBuilder::build_raw().

Template Parameters
Distance_An Annoy class to compute the distance between vectors, e.g., Annoy::Euclidean.
Dim_Integer type for the number of dimensions. For the output of AnnoyBuilder::build_raw(), this is set to Matrix_::dimension_type.
Index_Integer type for the indices. For the output of AnnoyBuilder::build_raw(), this is set to Matrix_::index_type.
Float_Floating point type for the query data and output distances.
InternalIndex_Integer type for the internal indices in Annoy.
InternalData_Floating point type for the internal data in Annoy.

Member Function Documentation

◆ initialize()

◆ num_dimensions()

◆ num_observations()


The documentation for this class was generated from the following file: