Skip to content

Commit

Permalink
Add Precomputed to the DistanceType enum (for cuML DBSCAN) (#177)
Browse files Browse the repository at this point in the history
Suggested by @dantegd in: rapidsai/cuml#3585 (comment)

Authors:
  - Louis Sugy (@Nyrio)

Approvers:
  - Thejaswi. N. S (@teju85)

URL: #177
  • Loading branch information
Nyrio authored Mar 24, 2021
1 parent d076399 commit 9b6ad82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/include/raft/linalg/distance_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b6ad82

Please sign in to comment.