Skip to content

Commit

Permalink
Make test tolerance dependent on condition number in Bunch-Kaufman test
Browse files Browse the repository at this point in the history
Fixes #25096
  • Loading branch information
andreasnoack committed Dec 15, 2017
1 parent 5e1418b commit 3d60a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/linalg/bunchkaufman.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d60a9d

Please sign in to comment.