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

Fix #30572
  • Loading branch information
ViralBShah committed Jan 3, 2019
1 parent 8b189ec commit 478556e
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 478556e

Please sign in to comment.