File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 70
70
@test_broken norm (Matrix (sm* inv (sm) - eye (4 ))) < 10 * norm (m* inv (m) - eye (4 ))
71
71
end
72
72
73
+ @testset " Matrix inverse 5x5" begin
74
+ m = randn (Float64, 5 ,5 ) + eye (5 )
75
+ @test inv (SMatrix {5,5} (m)):: StaticMatrix ≈ inv (m)
76
+ m = triu (randn (Float64, 5 ,5 ) + eye (5 ))
77
+ @test inv (SMatrix {5,5} (m)):: StaticMatrix ≈ inv (m)
78
+ m = tril (randn (Float64, 5 ,5 ) + eye (5 ))
79
+ @test inv (SMatrix {5,5} (m)):: StaticMatrix ≈ inv (m)
80
+ end
73
81
74
82
# -------------------------------------------------------------------------------
75
83
# More comprehensive but qualitiative testing for inv() accuracy
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ include("eigen.jl")
31
31
include (" expm.jl" )
32
32
include (" sqrtm.jl" )
33
33
include (" lyap.jl" )
34
+ include (" lu.jl" )
34
35
include (" chol.jl" )
35
36
include (" deque.jl" )
36
37
include (" io.jl" )
You can’t perform that action at this time.
0 commit comments