Home
libcuml
cucim
cudf-java
cudf
cugraph
cuml
cuproj
cuspatial
cuvs
cuxfilter
dask-cuda
dask-cudf
kvikio
libcudf
libcuml
libcuproj
libcuspatial
libkvikio
librmm
libucxx
raft
rapids-cmake
rapidsmpf
rmm
stable (25.08)
nightly (25.10)
stable (25.08)
legacy (25.06)
include
cuml
common
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,
32
CorrelationExpanded
= 10,
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
ML::distance
Definition:
distance_type.hpp:19
ML::distance::DistanceType
DistanceType
Definition:
distance_type.hpp:21
ML::distance::DistanceType::Precomputed
@ Precomputed
ML::distance::DistanceType::BrayCurtis
@ BrayCurtis
ML::distance::DistanceType::JensenShannon
@ JensenShannon
ML::distance::DistanceType::InnerProduct
@ InnerProduct
ML::distance::DistanceType::L2SqrtExpanded
@ L2SqrtExpanded
ML::distance::DistanceType::CosineExpanded
@ CosineExpanded
ML::distance::DistanceType::L2Expanded
@ L2Expanded
ML::distance::DistanceType::KLDivergence
@ KLDivergence
ML::distance::DistanceType::Linf
@ Linf
ML::distance::DistanceType::RusselRaoExpanded
@ RusselRaoExpanded
ML::distance::DistanceType::L2SqrtUnexpanded
@ L2SqrtUnexpanded
ML::distance::DistanceType::BitwiseHamming
@ BitwiseHamming
ML::distance::DistanceType::JaccardExpanded
@ JaccardExpanded
ML::distance::DistanceType::Canberra
@ Canberra
ML::distance::DistanceType::HellingerExpanded
@ HellingerExpanded
ML::distance::DistanceType::DiceExpanded
@ DiceExpanded
ML::distance::DistanceType::L1
@ L1
ML::distance::DistanceType::L2Unexpanded
@ L2Unexpanded
ML::distance::DistanceType::CorrelationExpanded
@ CorrelationExpanded
ML::distance::DistanceType::HammingUnexpanded
@ HammingUnexpanded
ML::distance::DistanceType::Haversine
@ Haversine
ML::distance::DistanceType::LpUnexpanded
@ LpUnexpanded
Generated by
1.9.1