Skip to content

Commit 8abd882

Browse files
version gate it?
1 parent c176f88 commit 8abd882

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/factorization.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ function _ldiv!(x::Vector, A::Factorization, b::Vector)
66
ldiv!(A, x)
77
end
88

9-
function _ldiv!(x::AbstractVector, A::SparseArrays.SPQR.QRSparse, b::AbstractVector)
10-
x .= A \ b
9+
@static if VERSION >= v"1.9-"
10+
function _ldiv!(x::AbstractVector, A::SparseArrays.SPQR.QRSparse, b::AbstractVector)
11+
x .= A \ b
12+
end
1113
end
12-
1314
function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs...)
1415
if cache.isfresh
1516
fact = do_factorization(alg, cache.A, cache.b, cache.u)

0 commit comments

Comments
 (0)