mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3967 This diff just finds and replaces duplicate license headers. See the errors for "duplicate-license-header" in D64429711 under "linter-coverage-verification" signal. Reviewed By: asadoughi Differential Revision: D64484123 fbshipit-source-id: 906e8baa3a11a3bbee174a03dcc27681f9fd78c2
35 lines
770 B
C
35 lines
770 B
C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// -*- c++ -*-
|
|
// I/O code for indexes
|
|
|
|
#ifndef FAISS_CLONE_INDEX_C_H
|
|
#define FAISS_CLONE_INDEX_C_H
|
|
|
|
#include <stdio.h>
|
|
#include "IndexBinary_c.h"
|
|
#include "Index_c.h"
|
|
#include "faiss_c.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* cloning functions */
|
|
|
|
/** Clone an index. This is equivalent to `faiss::clone_index` */
|
|
int faiss_clone_index(const FaissIndex*, FaissIndex** p_out);
|
|
|
|
/** Clone a binary index. This is equivalent to `faiss::clone_index_binary` */
|
|
int faiss_clone_index_binary(const FaissIndexBinary*, FaissIndexBinary** p_out);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|