distance_type.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 namespace ML::distance {
9 
10 enum class DistanceType {
11  L2Expanded = 0,
12  L2SqrtExpanded = 1,
13  CosineExpanded = 2,
14  L1 = 3,
15  L2Unexpanded = 4,
16  L2SqrtUnexpanded = 5,
17  InnerProduct = 6,
18  Linf = 7,
19  Canberra = 8,
20  LpUnexpanded = 9,
22  JaccardExpanded = 11,
23  HellingerExpanded = 12,
24  Haversine = 13,
25  BrayCurtis = 14,
26  JensenShannon = 15,
27  HammingUnexpanded = 16,
28  KLDivergence = 17,
29  RusselRaoExpanded = 18,
30  DiceExpanded = 19,
31  BitwiseHamming = 20,
32  Precomputed = 100
33 };
34 
35 } // end namespace ML::distance
Definition: distance_type.hpp:8
DistanceType
Definition: distance_type.hpp:10