Skip to content

Commit 3e96775

Browse files
authored
Avoid singular A during precompilation
There is a small probability that the current choice is singular which causes a precompilation error.
1 parent 0a3d5ba commit 3e96775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinearSolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SnoopPrecompile.@precompile_all_calls begin
6161
sol = solve(prob, RFLUFactorization())
6262
sol = solve(prob, KrylovJL_GMRES())
6363

64-
A = sprand(4, 4, 0.9)
64+
A = sprand(4, 4, 0.3) + I
6565
prob = LinearProblem(A, b)
6666
sol = solve(prob)
6767
sol = solve(prob, KLUFactorization())

0 commit comments

Comments
 (0)