Run: cargo clippy --fix -Z unstable-options and cargo fmt

This commit is contained in:
Luis Moreno
2020-11-08 19:39:11 -04:00
parent 8281a1620e
commit 860056c3ba
48 changed files with 367 additions and 395 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ impl<T: RealNumber> Distance<Vec<T>, T> for Minkowski {
for i in 0..x.len() {
let d = (x[i] - y[i]).abs();
dist = dist + d.powf(p_t);
dist += d.powf(p_t);
}
dist.powf(T::one() / p_t)