Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
IndexLSH_c.h
1 /**
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD+Patents license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 // Copyright 2004-present Facebook. All Rights Reserved.
10 // -*- c++ -*-
11 
12 #ifndef INDEX_LSH_C_H
13 #define INDEX_LSH_C_H
14 
15 #include "faiss_c.h"
16 #include "Index_c.h"
17 #include "Clustering_c.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /** The sign of each vector component is put in a binary signature */
24 FAISS_DECLARE_CLASS_INHERITED(IndexLSH, Index)
25 FAISS_DECLARE_DESTRUCTOR(IndexLSH)
26 FAISS_DECLARE_INDEX_DOWNCAST(IndexLSH)
27 
28 FAISS_DECLARE_GETTER(IndexLSH, int, nbits)
29 FAISS_DECLARE_GETTER(IndexLSH, int, bytes_per_vec)
30 FAISS_DECLARE_GETTER(IndexLSH, int, rotate_data)
31 FAISS_DECLARE_GETTER(IndexLSH, int, train_thresholds)
32 
33 int faiss_IndexLSH_new(FaissIndexLSH** p_index, idx_t d, int nbits);
34 
35 int faiss_IndexLSH_new_with_options(FaissIndexLSH** p_index, idx_t d, int nbits, int rotate_data, int train_thresholds);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif