--- a/src/loc.rs Sun May 11 02:03:45 2025 -0500 +++ b/src/loc.rs Mon May 12 15:42:48 2025 -0500 @@ -710,7 +710,8 @@ impl<F: Float, const N: usize> Linear<Loc<N, F>> for Loc<N, F> {} -impl<F: Float, const N: usize> AXPY<F, Loc<N, F>> for Loc<N, F> { +impl<F: Float, const N: usize> AXPY<Loc<N, F>> for Loc<N, F> { + type Field = F; type Owned = Self; #[inline] @@ -729,12 +730,22 @@ x.eval(|x̃| map2_mut(self, x̃, |yi, xi| *yi = *xi)) } + // #[inline] + // fn make_origin_generator(&self) -> StaticEuclideanOriginGenerator { + // StaticEuclideanOriginGenerator + // } + #[inline] fn similar_origin(&self) -> Self::Owned { Self::ORIGIN } #[inline] + fn similar_origin_inst<I: Instance<Self>>(_: I) -> Self::Owned { + Self::ORIGIN + } + + #[inline] fn set_zero(&mut self) { *self = Self::ORIGIN; }