Skip to content

Commit 1abf46a

Browse files
committed
Low accuracy factorizations
1 parent 59de357 commit 1abf46a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/test_factorizations.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,23 @@ using Test: @inferred, @test, @test_throws, @testset
4141
MATRIX_FUNCTIONS = [MATRIX_FUNCTIONS; [:inv, :pinv]]
4242
# Only works when real, also isn't defined in Julia 1.10.
4343
MATRIX_FUNCTIONS = setdiff(MATRIX_FUNCTIONS, [:cbrt])
44-
for f in MATRIX_FUNCTIONS
44+
MATRIX_FUNCTIONS_LOW_ACCURACY = [:acoth]
45+
for f in setdiff(MATRIX_FUNCTIONS, MATRIX_FUNCTIONS_LOW_ACCURACY)
4546
@eval begin
4647
fa = $f($a)
4748
@test Matrix(fa) $f(Matrix($a)) rtol = (eps(real($elt)))
4849
@test fa isa BlockSparseMatrix
4950
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
5051
end
5152
end
53+
for f in MATRIX_FUNCTIONS_LOW_ACCURACY
54+
@eval begin
55+
fa = $f($a)
56+
@test Matrix(fa) $f(Matrix($a)) rtol = (eps(real($elt)))
57+
@test fa isa BlockSparseMatrix
58+
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
59+
end
60+
end
5261

5362
# Catch case of off-diagonal blocks.
5463
rng = StableRNG(123)

0 commit comments

Comments
 (0)