@@ -86,7 +86,8 @@ using Test: @inferred, @test, @test_throws, @testset
8686 MATRIX_FUNCTIONS = BlockSparseArrays. MATRIX_FUNCTIONS
8787 # These functions involve inverses so they break when there are zeros on the diagonal.
8888 MATRIX_FUNCTIONS_SINGULAR = [
89- :log , :acsc , :asec , :acot , :acsch , :asech , :acoth , :csc , :cot , :csch , :coth ,
89+ :log , :acsc , :asec , :acosh , :acot , :acsch , :asech , :acoth , :csc , :cot , :csch ,
90+ :coth ,
9091 ]
9192 MATRIX_FUNCTIONS = setdiff (MATRIX_FUNCTIONS, MATRIX_FUNCTIONS_SINGULAR)
9293 # Dense version is broken for some reason, investigate.
@@ -100,15 +101,9 @@ using Test: @inferred, @test, @test_throws, @testset
100101 end
101102 end
102103
103- SINGULAR_EXCEPTION = if VERSION < v " 1.11-"
104- # A different exception is thrown in older versions of Julia.
105- LinearAlgebra. LAPACKException
106- else
107- LinearAlgebra. SingularException
108- end
109- for f in setdiff (MATRIX_FUNCTIONS_SINGULAR, [:log ])
104+ for f in setdiff (MATRIX_FUNCTIONS_SINGULAR, [:acosh , :log ])
110105 @eval begin
111- @test_throws $ SINGULAR_EXCEPTION $ f ($ a)
106+ @test_throws Exception $ f ($ a)
112107 end
113108 end
114109 end
0 commit comments