diff -r 05089fbc0310 -r d8305c9b6fdf src/loc.rs --- a/src/loc.rs Tue Dec 31 08:30:43 2024 -0500 +++ b/src/loc.rs Sat Dec 21 23:32:20 2024 -0500 @@ -443,11 +443,6 @@ impl Euclidean for Loc { type Output = Self; - #[inline] - fn similar_origin(&self) -> Self { - Self::ORIGIN - } - /// This implementation is not stabilised as it's meant to be used for very small vectors. /// Use [`nalgebra`] for larger vectors. #[inline] @@ -712,6 +707,8 @@ impl Linear> for Loc { } impl AXPY> for Loc { + type Owned = Self; + #[inline] fn axpy>>(&mut self, α : F, x : I, β : F) { x.eval(|x̃| { @@ -727,4 +724,15 @@ fn copy_from>>(&mut self, x : I) { x.eval(|x̃| map2_mut(self, x̃, |yi, xi| *yi = *xi )) } + + #[inline] + fn similar_origin(&self) -> Self::Owned { + Self::ORIGIN + } + + #[inline] + fn set_zero(&mut self) { + *self = Self::ORIGIN; + } } +