From 9b6ad8222a8bc509fb1db843511a90c7933d7b68 Mon Sep 17 00:00:00 2001 From: Louis Sugy Date: Wed, 24 Mar 2021 07:44:32 +0100 Subject: [PATCH] Add Precomputed to the DistanceType enum (for cuML DBSCAN) (#177) Suggested by @dantegd in: https://github.com/rapidsai/cuml/pull/3585#discussion_r597337344 Authors: - Louis Sugy (@Nyrio) Approvers: - Thejaswi. N. S (@teju85) URL: https://github.com/rapidsai/raft/pull/177 --- cpp/include/raft/linalg/distance_type.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/include/raft/linalg/distance_type.h b/cpp/include/raft/linalg/distance_type.h index 0e36709a55..3dd038630e 100644 --- a/cpp/include/raft/linalg/distance_type.h +++ b/cpp/include/raft/linalg/distance_type.h @@ -53,7 +53,10 @@ enum DistanceType : unsigned short { /** Bray-Curtis distance **/ BrayCurtis = 14, /** Jensen-Shannon distance**/ - JensenShannon = 15 + JensenShannon = 15, + + /** Precomputed (special value) **/ + Precomputed = 100 }; }; // namespace distance