diff -r f7b87d84864d -r 4f6ca107ccb1 src/euclidean.rs --- a/src/euclidean.rs Sun Dec 22 14:54:46 2024 -0500 +++ b/src/euclidean.rs Sun Dec 22 15:30:34 2024 -0500 @@ -48,11 +48,11 @@ } /// Calculate the 2-distance squared $\\|x-y\\|_2^2$, where `self` is $x$. - fn dist2_squared(&self, y : &Self) -> F; + fn dist2_squared>(&self, y : I) -> F; /// Calculate the 2-distance $\\|x-y\\|_2$, where `self` is $x$. #[inline] - fn dist2(&self, y : &Self) -> F { + fn dist2>(&self, y : I) -> F { self.dist2_squared(y).sqrt() }