From 3d60a9d9b0614d8943f509cce4195e1f753e5694 Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Fri, 15 Dec 2017 12:18:29 +0100 Subject: [PATCH] Make test tolerance dependent on condition number in Bunch-Kaufman test Fixes #25096 --- test/linalg/bunchkaufman.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/linalg/bunchkaufman.jl b/test/linalg/bunchkaufman.jl index 4d24e6dbbcf07..b92e34a74ce2b 100644 --- a/test/linalg/bunchkaufman.jl +++ b/test/linalg/bunchkaufman.jl @@ -95,7 +95,7 @@ bimg = randn(n,2)/2 @test logabsdet(bc2)[1] ≈ log(abs(det(bc2))) @test logabsdet(bc2)[2] == sign(det(bc2)) @test inv(bc2)*apd ≈ Matrix(I, n, n) - @test apd*(bc2\b) ≈ b atol=150000ε + @test apd*(bc2\b) ≈ b rtol=eps(cond(apd)) @test ishermitian(bc2) == !issymmetric(bc2) end end