Skip to content

Commit

Permalink
Guard against accidental singularity in a sparse linalg test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha0 committed Dec 21, 2017
1 parent 1319567 commit 6b68e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sparse/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1672,8 +1672,8 @@ end

@testset "sparse matrix cond" begin
local A = sparse(reshape([1.0], 1, 1))
Ac = sprandn(20, 20,.5) + im* sprandn(20, 20,.5)
Ar = sprandn(20, 20,.5)
Ac = sprandn(20, 20,.5) + im*sprandn(20, 20,.5)
Ar = sprandn(20, 20,.5) + eps()*I
@test cond(A, 1) == 1.0
# For a discussion of the tolerance, see #14778
if Base.USE_GPL_LIBS
Expand Down

0 comments on commit 6b68e5b

Please sign in to comment.