13 #include "IndexBinaryFlat.h"
41 void add(
idx_t n,
const uint8_t *x)
override;
44 void train(
idx_t n,
const uint8_t* x)
override;
48 int32_t *distances,
idx_t *labels)
const override;
52 void reset()
override;
void add(idx_t n, const uint8_t *x) override
Index::idx_t idx_t
all indices are this type
void reconstruct(idx_t key, uint8_t *recons) const override
void train(idx_t n, const uint8_t *x) override
Trains the storage if needed.
void search(idx_t n, const uint8_t *x, idx_t k, int32_t *distances, idx_t *labels) const override
entry point for search
int storage_idx_t
internal storage of vectors (32 bits: this is expensive)
void reset() override
Removes all elements from the database.