结构体 faiss::ZnSphereSearch
-
struct ZnSphereSearch
返回球体中最接近查询点的顶点。仅返回坐标,不返回 ID。
算法:所有点都来自一个原子向量,经过排列和符号更改。搜索函数找到最合适的原子和变换。
由 faiss::ZnSphereCodec 继承
公共函数
-
ZnSphereSearch(int dim, int r2)
-
float search(const float *x, float *c) const
查找最近的质心。 x 不需要归一化
-
float search(const float *x, float *c, float *tmp, int *tmp_int, int *ibest_out = nullptr) const
完整调用。 需要外部分配的临时空间
-
void search_multi(int n, const float *x, float *c_out, float *dp_out)
-
ZnSphereSearch(int dim, int r2)