Skip to content

Commit 3e979ca

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

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/test_factorizations.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using MatrixAlgebraKit:
3030
trunctol
3131
using Random: Random
3232
using StableRNGs: StableRNG
33-
using Test: @inferred, @test, @test_throws, @testset
33+
using Test: @inferred, @test, @test_broken, @test_throws, @testset
3434

3535
@testset "Matrix functions (T=$elt)" for elt in (Float32, Float64, ComplexF64)
3636
rng = StableRNG(123)
@@ -53,10 +53,13 @@ using Test: @inferred, @test, @test_throws, @testset
5353
for f in MATRIX_FUNCTIONS_LOW_ACCURACY
5454
@eval begin
5555
fa = $f($a)
56-
# Accuracy is much lower on Windows and Ubuntu for `acoth`
57-
# for some reason.
58-
rtol = Sys.isapple() ? eps(real($elt)) : eps(real($elt))^(1/5)
59-
@test Matrix(fa) $f(Matrix($a)) rtol = rtol
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.
61+
@test_broken Matrix(fa) $f(Matrix($a)) rtol = eps(real($elt))
62+
end
6063
@test fa isa BlockSparseMatrix
6164
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
6265
end

0 commit comments

Comments
 (0)