Skip to content

Commit

Permalink
Fix test failure on Julia 1.2 due to new eigenvalue sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Apr 12, 2019
1 parent 7ddfb9e commit 1cf521b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ using Test, LinearAlgebra, SparseArrays, Random
k = 3
A = randn(n,n); A = A'A
B = randn(n,k); B = B*B'
@test sort(eigs(A, B, nev = k, sigma = 1.0)[1]) sort(eigvals(A, B)[1:k])
@test sort(eigs(A, B, nev = k, sigma = 1.0)[1]) sort(eigvals(A, B); by=abs)[1:k]
end
end

Expand Down

0 comments on commit 1cf521b

Please sign in to comment.