| 1 |
/* |
| 2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 |
* |
| 4 |
* This source code is licensed under the MIT license found in the |
| 5 |
* LICENSE file in the root directory of this source tree. |
| 6 |
*/ |
| 7 |
|
| 8 |
// -*- c++ -*- |
| 9 |
|
| 10 |
#ifndef INDEX_LSH_C_H |
| 11 |
#define INDEX_LSH_C_H |
| 12 |
|
| 13 |
#include "Clustering_c.h" |
| 14 |
#include "Index_c.h" |
| 15 |
#include "faiss_c.h" |
| 16 |
|
| 17 |
#ifdef __cplusplus |
| 18 |
extern "C" { |
| 19 |
#endif |
| 20 |
|
| 21 |
/** The sign of each vector component is put in a binary signature */ |
| 22 |
FAISS_DECLARE_CLASS_INHERITED(IndexLSH, Index) |
| 23 |
FAISS_DECLARE_DESTRUCTOR(IndexLSH) |
| 24 |
FAISS_DECLARE_INDEX_DOWNCAST(IndexLSH) |
| 25 |
|
| 26 |
FAISS_DECLARE_GETTER(IndexLSH, int, nbits) |
| 27 |
FAISS_DECLARE_GETTER(IndexLSH, int, code_size) |
| 28 |
FAISS_DECLARE_GETTER(IndexLSH, int, rotate_data) |
| 29 |
FAISS_DECLARE_GETTER(IndexLSH, int, train_thresholds) |
| 30 |
|
| 31 |
int faiss_IndexLSH_new(FaissIndexLSH** p_index, idx_t d, int nbits); |
| 32 |
|
| 33 |
int faiss_IndexLSH_new_with_options( |
| 34 |
FaissIndexLSH** p_index, |
| 35 |
idx_t d, |
| 36 |
int nbits, |
| 37 |
int rotate_data, |
| 38 |
int train_thresholds); |
| 39 |
|
| 40 |
#ifdef __cplusplus |
| 41 |
} |
| 42 |
#endif |
| 43 |
|
| 44 |
#endif |