src/discrete_gradient.rs

changeset 207
032957f8d6de
parent 186
afe04e6b4a5b
--- a/src/discrete_gradient.rs	Thu Sep 03 10:14:13 2026 -0500
+++ b/src/discrete_gradient.rs	Thu Sep 03 10:50:27 2026 -0500
@@ -468,12 +468,12 @@
 
         let grad = Grad::new_for(&im, 1.0, [3, 3], ForwardNeumann).unwrap();
         let a = grad.apply(&im).dot(&v);
-        let b = grad.adjoint().apply(&v).dot(&im);
+        let b = SimplyAdjointable::adjoint(&grad).apply(&v).dot(&im);
         assert_eq!(a, b);
 
         let grad = Grad::new_for(&im, 1.0, [3, 3], ForwardDirichlet).unwrap();
         let a = grad.apply(&im).dot(&v);
-        let b = grad.adjoint().apply(&v).dot(&im);
+        let b = SimplyAdjointable::adjoint(&grad).apply(&v).dot(&im);
         assert_eq!(a, b);
     }
 }

mercurial