Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
RemapIndices.h
1 /**
2 * Copyright (c) Facebook, Inc. and its 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
9 #pragma once
10
11 #include <vector>
12
13 namespace faiss { namespace gpu {
14
15 /// Utility function to translate (list id, offset) to a user index on
16 /// the CPU. In a cpp in order to use OpenMP.
17 void ivfOffsetToUserIndex(
18 long* indices,
19 int numLists,
20 int queries,
21 int k,
22 const std::vector<std::vector<long>>& listOffsetToUserIndex);
23
24 } } // namespace