test fix

Thu, 03 Sep 2026 10:50:27 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 03 Sep 2026 10:50:27 -0500
changeset 207
032957f8d6de
parent 206
ce37ff3ce507
child 208
6be69f736c79

test fix

src/discrete_gradient.rs file | annotate | diff | comparison | revisions
--- 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