Skip to content

Commit d3959a0

Browse files
committed
Low accuracy factorizations
1 parent 3e979ca commit d3959a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_factorizations.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ using Test: @inferred, @test, @test_broken, @test_throws, @testset
5353
for f in MATRIX_FUNCTIONS_LOW_ACCURACY
5454
@eval begin
5555
fa = $f($a)
56-
if Sys.isapple()
57-
@test Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
58-
else
59-
# Accuracy is much lower on Windows and Ubuntu for `acoth`
60-
# for some reason.
56+
if !Sys.isapple() && isreal(elt)
57+
# `acoth` appears to be broken on this matrix on Windows and Ubuntu
58+
# for real matrices.
6159
@test_broken Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
60+
else
61+
@test Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
6262
end
6363
@test fa isa BlockSparseMatrix
6464
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])

0 commit comments

Comments
 (0)