forked from facebookresearch/faiss
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathIndexVPQ.cpp
50 lines (32 loc) · 988 Bytes
/
IndexVPQ.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Copyright (c) 2018-present, Thomson Licensing, SAS.
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* Modifications related the introduction of Quicker ADC (Vectorized Product Quantization)
* are licensed under the Clear BSD license found in the LICENSE file in the root directory
* of this source tree.
*
* The rest of the source code is licensed under the BSD+Patents license found in the
* LICENSE file in the root directory of this source tree
*/
/* Copyright 2004-present Facebook. All Rights Reserved.
Index based on product quantiztion.
*/
#include "IndexVPQ.h"
#include <cstddef>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include "FaissAssert.h"
namespace faiss {
/*****************************************
* Stats of IndexPQ codes
******************************************/
void IndexVPQStats::reset()
{
nq = ncode = 0;
}
IndexVPQStats indexVPQ_stats;
} // END namespace faiss