From b9f404c5839d49b3d9934d10f3847bb3f2a7350e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 7 Apr 2026 14:53:06 -0400 Subject: [PATCH] tests/preconditioned_conjugate_gradient_method_tests.m: output diff Temporarily output the diff between the actual and expected results. --- tests/preconditioned_conjugate_gradient_method_tests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/preconditioned_conjugate_gradient_method_tests.m b/tests/preconditioned_conjugate_gradient_method_tests.m index d0189de..7342ca8 100644 --- a/tests/preconditioned_conjugate_gradient_method_tests.m +++ b/tests/preconditioned_conjugate_gradient_method_tests.m @@ -89,7 +89,7 @@ for n = [ 5, 10, 25, 50, 100 ] max_iterations); diff = norm(o_x - x, 'inf'); - msg = sprintf("Our PCGM agrees with Octave's, n=%d.", n); + msg = sprintf("Our PCGM agrees with Octave's, n=%d, diff=%.12f", n, diff); ## There's no good way to choose the tolerance here, since each ## individual algorithm terminates based on the (2,infinity)-norm of ## the gradient. So we use two orders of magnitude. -- 2.51.0