命名空间 faiss::nndescent

namespace nndescent
struct Neighbor

公共函数

Neighbor() = default
inline Neighbor(int id, float distance, bool f)
inline bool operator<(const Neighbor &other) const

公共成员

int id
float distance
bool flag
struct Nhood

公共函数

Nhood() = default
Nhood(int l, int s, std::mt19937 &rng, int N)
Nhood &operator=(const Nhood &other)
Nhood(const Nhood &other)
void insert(int id, float dist)
template<typename C>
void join(C callback) const

公共成员

std::mutex lock
std::vector<Neighbor> pool
int M
std::vector<int> nn_old
std::vector<int> nn_new
std::vector<int> rnn_old
std::vector<int> rnn_new