10 #ifndef FAISS_INDEX_BINARY_FROM_FLOAT_H
11 #define FAISS_INDEX_BINARY_FROM_FLOAT_H
13 #include "IndexBinary.h"
29 Index *index =
nullptr;
39 void add(
idx_t n,
const uint8_t *x)
override;
41 void reset()
override;
44 int32_t *distances,
idx_t *labels)
const override;
46 void train(
idx_t n,
const uint8_t *x)
override;
52 #endif // FAISS_INDEX_BINARY_FROM_FLOAT_H
void add(idx_t n, const uint8_t *x) override
bool own_fields
Whether object owns the index pointer.
Index::idx_t idx_t
all indices are this type
void search(idx_t n, const uint8_t *x, idx_t k, int32_t *distances, idx_t *labels) const override
void reset() override
Removes all elements from the database.
void train(idx_t n, const uint8_t *x) override