distance_type.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 namespace ML::distance {
20 
21 enum class DistanceType {
22  L2Expanded = 0,
23  L2SqrtExpanded = 1,
24  CosineExpanded = 2,
25  L1 = 3,
26  L2Unexpanded = 4,
27  L2SqrtUnexpanded = 5,
28  InnerProduct = 6,
29  Linf = 7,
30  Canberra = 8,
31  LpUnexpanded = 9,
33  JaccardExpanded = 11,
34  HellingerExpanded = 12,
35  Haversine = 13,
36  BrayCurtis = 14,
37  JensenShannon = 15,
38  HammingUnexpanded = 16,
39  KLDivergence = 17,
40  RusselRaoExpanded = 18,
41  DiceExpanded = 19,
42  BitwiseHamming = 20,
43  Precomputed = 100
44 };
45 
46 } // end namespace ML::distance
Definition: distance_type.hpp:19
DistanceType
Definition: distance_type.hpp:21