--- a/src/direct_product.rs Mon May 12 15:42:48 2025 -0500 +++ b/src/direct_product.rs Mon May 12 16:28:50 2025 -0500 @@ -179,9 +179,7 @@ } impl_scalar!(Mul, mul); -//impl_scalar!(Mul, mul, f64); -impl_scalar!(Sub, sub); -//impl_scalar!(Sub, sub, f64); +impl_scalar!(Div, div); macro_rules! impl_scalar_lhs { ($trait:ident, $fn:ident, $F:ty) => { @@ -211,6 +209,8 @@ impl_scalar_lhs!(Mul, mul, f32); impl_scalar_lhs!(Mul, mul, f64); +impl_scalar_lhs!(Div, div, f32); +impl_scalar_lhs!(Div, div, f64); macro_rules! impl_binary_mut { ($trait:ident, $fn:ident) => { @@ -308,8 +308,8 @@ A: AXPY<U, Field = F>, B: AXPY<V, Field = F>, F: Num, - Self: MulAssign<F>, - Pair<A, B>: MulAssign<F>, + Self: MulAssign<F> + DivAssign<F>, + Pair<A, B>: MulAssign<F> + DivAssign<F>, //A::Owned: MulAssign<F>, //B::Owned: MulAssign<F>, //Pair<A::Owned, B::Owned>: AXPY<Pair<U, V>, Field = F>,