You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add variation to shift strategy as suggested by David Day. Thanks
to Harmen Stoppels for pointing out the issue.
Also rename :Wilkinson shift strategy to :Francis since "Wilkinson"
seems to be slightly ambiguous in the non-symmetric case.
Fixes#29
Copy file name to clipboardExpand all lines: test/eigengeneral.jl
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,29 @@ end
20
20
end
21
21
end
22
22
23
+
@testset"Convergence in corner cases. Issue 29."begin
24
+
functionH(n::Int)
25
+
H =zeros(2n, 2n)
26
+
for i =1:2:2n
27
+
H[i, i+1] =1
28
+
H[i+1, i] =1
29
+
end
30
+
H
31
+
end
32
+
33
+
functionE(n::Int)
34
+
E =zeros(2n, 2n)
35
+
for i =1: (n -1)
36
+
E[2i +1, 2i] =1
37
+
end
38
+
E[1, 2n] =1
39
+
E
40
+
end
41
+
42
+
my_matrix(n::Int, η::Float64=1e-9) =H(n) .+ η .*E(n)
43
+
44
+
A =my_matrix(4, 1e-3);
45
+
@testsort(GenericLinearAlgebra._eigvals!(GenericLinearAlgebra._schur!(copy(A))), by = t -> (real(t), imag(t))) ≈sort(eigvals(A), by = t -> (real(t), imag(t)))
0 commit comments