Skip to content

Commit

Permalink
Add the scaled identity matrix to a random matrix to avoid getting a …
Browse files Browse the repository at this point in the history
…singular matrix (#30576)

Fix #30572
  • Loading branch information
ViralBShah authored Jan 4, 2019
1 parent 43faeac commit 4d8a968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/SuiteSparse/test/umfpack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ using LinearAlgebra: Adjoint, Transpose, SingularException
end

@testset "deserialization" begin
A = sprandn(10, 10, 0.4)
A = 10*I + sprandn(10, 10, 0.4)
F1 = lu(A)
b = IOBuffer()
serialize(b, F1)
Expand Down

0 comments on commit 4d8a968

Please sign in to comment.