From 0e1a8b4720f5c230961e419db6726e0c319384d8 Mon Sep 17 00:00:00 2001 From: Amiel Date: Wed, 21 Jan 2026 22:48:37 +0100 Subject: [PATCH 1/2] fix abs --- test/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index 0f103cdb..0d8fd73f 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -151,7 +151,7 @@ function comparison(; max_iter, test_name) tf_di = abs(A - B) tf_bd = max(0.5*(A+B)*ε_rel, ε_abs) res = @my_test_broken tf_di < tf_bd - r_err = tf_di / (0.5*(A+B)) + r_err = tf_di / (0.5*(abs(A)+abs(B)) DEBUG && @printf( "│ → %s: %.3e %s: %.3e r_err=%.3e a_err=%.3e bound=%.3e %s\n", A_name, From a7b3b97b0fa50502d17546bcddd8163fb947af3b Mon Sep 17 00:00:00 2001 From: Amiel Date: Wed, 21 Jan 2026 22:49:04 +0100 Subject: [PATCH 2/2] fix abs 2 --- test/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index 0d8fd73f..e85cdb4e 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -151,7 +151,7 @@ function comparison(; max_iter, test_name) tf_di = abs(A - B) tf_bd = max(0.5*(A+B)*ε_rel, ε_abs) res = @my_test_broken tf_di < tf_bd - r_err = tf_di / (0.5*(abs(A)+abs(B)) + r_err = tf_di / (0.5*(abs(A)+abs(B))) DEBUG && @printf( "│ → %s: %.3e %s: %.3e r_err=%.3e a_err=%.3e bound=%.3e %s\n", A_name,