src/operator_arithmetic.rs

branch
dev
changeset 171
fa8df5a14486
parent 151
402d717bb5c0
--- a/src/operator_arithmetic.rs	Wed Sep 03 19:55:05 2025 -0500
+++ b/src/operator_arithmetic.rs	Wed Sep 03 20:19:41 2025 -0500
@@ -99,7 +99,7 @@
     type Codomain = M::Codomain;
 
     fn apply<I: Instance<Domain>>(&self, x: I) -> Self::Codomain {
-        x.eval_ref_decompose(|xr| self.0.iter().map(|c| c.apply(xr)).sum())
+        x.eval_ref(|xr| self.0.iter().map(|c| c.apply(xr)).sum())
     }
 }
 
@@ -112,6 +112,6 @@
     type Derivative = M::DerivativeDomain;
 
     fn differential_impl<I: Instance<Domain>>(&self, x: I) -> Self::Derivative {
-        x.eval_ref_decompose(|xr| self.0.iter().map(|c| c.differential(xr)).sum())
+        x.eval_ref(|xr| self.0.iter().map(|c| c.differential(xr)).sum())
     }
 }

mercurial