10 #ifndef FAISS_INDEX_IVFSH_H
11 #define FAISS_INDEX_IVFSH_H
21 struct VectorTransform;
45 ThresholdType threshold_type;
48 std::vector<float> trained;
51 int nbit,
float period);
58 const idx_t *list_nos,
59 uint8_t * codes)
const override;
InvertedListScanner * get_InvertedListScanner(bool store_pairs) const override
get a scanner for this index (store_pairs means ignore labels)
long idx_t
all indices are this type
void train_residual(idx_t n, const float *x) override
void encode_vectors(idx_t n, const float *x, const idx_t *list_nos, uint8_t *codes) const override
Index * quantizer
quantizer that maps vectors to inverted lists
size_t nlist
number of possible key values