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 Feb 20, 2020
1 parent 9b9959a commit f1a6f5d
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 f1a6f5d

Please sign in to comment.