Skip to content

Commit fd9d002

Browse files
ViralBShahKristofferC
authored andcommitted
Add the scaled identity matrix to a random matrix to avoid getting a singular matrix (#30576)
Fix #30572 (cherry picked from commit 4d8a968)
1 parent 221e128 commit fd9d002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/SuiteSparse/test/umfpack.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ using LinearAlgebra: Adjoint, Transpose, SingularException
178178
end
179179

180180
@testset "deserialization" begin
181-
A = sprandn(10, 10, 0.4)
181+
A = 10*I + sprandn(10, 10, 0.4)
182182
F1 = lu(A)
183183
b = IOBuffer()
184184
serialize(b, F1)

0 commit comments

Comments
 (0)