Skip to content

Commit

Permalink
Remove pre 1.9 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 4, 2023
1 parent e712202 commit 8644f32
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 308 deletions.
14 changes: 6 additions & 8 deletions src/LinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,12 @@ end
end
end

@static if VERSION > v"1.9-"
PrecompileTools.@compile_workload begin
A = sprand(4, 4, 0.3) + I
b = rand(4)
prob = LinearProblem(A * A', b)
sol = solve(prob) # in case sparspak is used as default
sol = solve(prob, SparspakFactorization())
end
PrecompileTools.@compile_workload begin
A = sprand(4, 4, 0.3) + I
b = rand(4)
prob = LinearProblem(A * A', b)
sol = solve(prob) # in case sparspak is used as default
sol = solve(prob, SparspakFactorization())
end

export LUFactorization, SVDFactorization, QRFactorization, GenericFactorization,
Expand Down
Loading

0 comments on commit 8644f32

Please sign in to comment.