We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 045c1cf commit 801b43cCopy full SHA for 801b43c
test/inv.jl
@@ -47,6 +47,14 @@ end
47
sm = SMatrix{4,4}(m)
48
@test isapprox(inv(sm)::StaticMatrix, inv(m), rtol=2e-15)
49
50
+ # A permutation matrix which can cause problems for inversion methods
51
+ # without pivoting, eg 2x2 block decomposition (see #250)
52
+ mperm = [1 0 0 0;
53
+ 0 0 1 0;
54
+ 0 1 0 0;
55
+ 0 0 0 1]
56
+ @test inv(SMatrix{4,4}(mperm))::StaticMatrix ≈ inv(mperm) rtol=2e-16
57
+
58
# Poorly conditioned matrix; almost_singular_matrix(4, 3, 1e-7)
59
m = [
60
2.83056817904263402e-01 1.26822318692296848e-01 2.59665505365002547e-01 1.24524798964590747e-01
0 commit comments