diff -r cebedc4a8331 -r d63e40672dd6 src/direct_product.rs --- a/src/direct_product.rs Sat Dec 21 14:27:14 2024 -0500 +++ b/src/direct_product.rs Fri Dec 20 16:14:17 2024 -0500 @@ -279,28 +279,27 @@ } } -impl AXPY> for Pair +impl AXPY for Pair where - U : Space, - V : Space, - A : AXPY, - B : AXPY, - F : Num + A : AXPY, + B : AXPY, + F : Num + AXPY { + type Field = F; - fn axpy>>(&mut self, α : F, x : I, β : F) { + fn axpy>>(&mut self, α : F, x : I, β : F) { let Pair(u, v) = x.decompose(); self.0.axpy(α, u, β); self.1.axpy(α, v, β); } - fn copy_from>>(&mut self, x : I) { + fn copy_from>>(&mut self, x : I) { let Pair(u, v) = x.decompose(); self.0.copy_from(u); self.1.copy_from(v); } - fn scale_from>>(&mut self, α : F, x : I) { + fn scale_from>>(&mut self, α : F, x : I) { let Pair(u, v) = x.decompose(); self.0.scale_from(α, u); self.1.scale_from(α, v);