11 #ifndef INDEX_BINARY_FLAT_H
12 #define INDEX_BINARY_FLAT_H
16 #include "IndexBinary.h"
24 std::vector<uint8_t>
xb;
31 size_t query_batch_size = 32;
35 void add(
idx_t n,
const uint8_t *x)
override;
37 void reset()
override;
40 int32_t *distances,
idx_t *labels)
const override;
55 #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
void reset() override
Removes all elements from the database.
std::vector< uint8_t > xb
database vectors, size ntotal * d / 8
long idx_t
all indices are this type