Faiss
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
gpu
impl
RemapIndices.h
1
2
/**
3
* Copyright (c) 2015-present, Facebook, Inc.
4
* All rights reserved.
5
*
6
* This source code is licensed under the CC-by-NC license found in the
7
* LICENSE file in the root directory of this source tree.
8
*/
9
10
// Copyright 2004-present Facebook. All Rights Reserved.
11
12
#pragma once
13
14
#include <vector>
15
16
namespace
faiss {
namespace
gpu {
17
18
/// Utility function to translate (list id, offset) to a user index on
19
/// the CPU. In a cpp in order to use OpenMP.
20
void
ivfOffsetToUserIndex(
21
long
* indices,
22
int
numLists,
23
int
queries,
24
int
k,
25
const
std::vector<std::vector<long>>& listOffsetToUserIndex);
26
27
} }
// namespace
Generated by
1.8.5