From 9085cc9481e49b4c025e4580a3eb1843df8f65b5 Mon Sep 17 00:00:00 2001 From: Louis Sugy Date: Fri, 19 Mar 2021 05:42:03 -0700 Subject: [PATCH] Add Precomputed to the DistanceType enum --- 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