Faiss
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
gpu
impl
RemapIndices.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
10
#pragma once
11
12
#include <vector>
13
14
namespace
faiss {
namespace
gpu {
15
16
/// Utility function to translate (list id, offset) to a user index on
17
/// the CPU. In a cpp in order to use OpenMP.
18
void
ivfOffsetToUserIndex(
19
long
* indices,
20
int
numLists,
21
int
queries,
22
int
k,
23
const
std::vector<std::vector<long>>& listOffsetToUserIndex);
24
25
} }
// namespace
Generated by
1.8.5