10 #ifndef INDEX_BINARY_FLAT_H
11 #define INDEX_BINARY_FLAT_H
15 #include "IndexBinary.h"
23 std::vector<uint8_t>
xb;
30 size_t query_batch_size = 32;
34 void add(
idx_t n,
const uint8_t *x)
override;
36 void reset()
override;
39 int32_t *distances,
idx_t *labels)
const override;
54 #endif // INDEX_BINARY_FLAT_H
void add(idx_t n, const uint8_t *x) override
long remove_ids(const IDSelector &sel) override
void search(idx_t n, const uint8_t *x, idx_t k, int32_t *distances, idx_t *labels) const override
void reconstruct(idx_t key, uint8_t *recons) const override
Index::idx_t idx_t
all indices are this type
void reset() override
Removes all elements from the database.
std::vector< uint8_t > xb
database vectors, size ntotal * d / 8