14 #include "IndexBinaryFlat.h"
42 void add(
idx_t n,
const uint8_t *x)
override;
45 void train(
idx_t n,
const uint8_t* x)
override;
49 int32_t *distances,
idx_t *labels)
const override;
53 void reset()
override;
void add(idx_t n, const uint8_t *x) override
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.
long 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
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.