We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f597b commit 43c272fCopy full SHA for 43c272f
core/src/index/thirdparty/annoy/src/annoylib.h
@@ -783,7 +783,7 @@ struct Euclidean : Minkowski {
783
}
784
template<typename T>
785
static inline T normalized_distance(T distance) {
786
- return sqrt(std::max(distance, T(0)));
+ return distance;
787
788
template<typename S, typename T>
789
static inline void init_node(Node<S, T>* n, int f) {
0 commit comments