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

(cherry picked from commit 4d8a968)
  • Loading branch information
ViralBShah authored and KristofferC committed Apr 20, 2019
1 parent 7786f78 commit 2dc20f7
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 2dc20f7

Please sign in to comment.