Debian Codegraph @

c_api/index_factory_c.h

raw
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 FAISS_INDEX_FACTORY_C_H
11 #define FAISS_INDEX_FACTORY_C_H
12
13 #include "IndexBinary_c.h"
14 #include "Index_c.h"
15 #include "faiss_c.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /** Build an index with the sequence of processing steps described in
22 * the string.
23 */
24 int faiss_index_factory(
25 FaissIndex** p_index,
26 int d,
27 const char* description,
28 FaissMetricType metric);
29
30 /** Build a binary index with the sequence of processing steps described in
31 * the string.
32 */
33 int faiss_index_binary_factory(
34 FaissIndexBinary** p_index,
35 int d,
36 const char* description);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif