Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Public Attributes | List of all members
faiss::HNSW::MinimaxHeap Struct Reference

#include <HNSW.h>

Public Types

typedef faiss::CMax< float,
storage_idx_t
HC
 

Public Member Functions

 MinimaxHeap (int n)
 
void push (storage_idx_t i, float v)
 
float max () const
 
int size () const
 
void clear ()
 
int pop_min (float *vmin_out=nullptr)
 
int count_below (float thresh)
 

Public Attributes

int n
 
int k
 
int nvalid
 
std::vector< storage_idx_tids
 
std::vector< float > dis
 

Detailed Description

Heap structure that allows fast

Definition at line 57 of file HNSW.h.


The documentation for this struct was generated from the following files: