Skip to content

Commit ef07182

Browse files
avoid ldiv! on sparse QR
1 parent 9d3c27b commit ef07182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/factorization.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ function _ldiv!(x::Vector, A::Factorization, b::Vector)
66
end
77

88
# Specialize QR for the non-square case
9+
# Missing ldiv! definitions: https://github.com/JuliaSparse/SparseArrays.jl/issues/242
910
function _ldiv!(x::Vector,
1011
A::Union{SparseArrays.QR, LinearAlgebra.QRCompactWY,
1112
SuiteSparse.SPQR.QRSparse}, b::Vector)
12-
ldiv!(x, A, b)
13+
x .= A \ b
1314
end
1415

1516
function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs...)

0 commit comments

Comments
 (0)