--- a/src/norms.rs Wed Apr 30 00:48:56 2025 -0500 +++ b/src/norms.rs Wed Apr 30 01:06:25 2025 -0500 @@ -176,13 +176,13 @@ } } -impl<F: Float, E: Euclidean<F>> Norm<F, HuberL1<F>> for E { +impl<F: Float, E: Euclidean<F> + Normed<F, NormExp = L2>> Norm<F, HuberL1<F>> for E { fn norm(&self, huber: HuberL1<F>) -> F { huber.apply(self.norm2_squared()) } } -impl<F: Float, E: Euclidean<F>> Dist<F, HuberL1<F>> for E { +impl<F: Float, E: Euclidean<F> + Normed<F, NormExp = L2>> Dist<F, HuberL1<F>> for E { fn dist<I: Instance<Self>>(&self, other: I, huber: HuberL1<F>) -> F { huber.apply(self.dist2_squared(other)) }