Skip to content

Commit 24e618b

Browse files
committed
Fallback for non-square A
1 parent eb1da3d commit 24e618b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/factorization.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ _ldiv!(x, A, b) = ldiv!(x, A, b)
1212

1313
function _ldiv!(x::Vector, A::Factorization, b::Vector)
1414
# workaround https://github.com/JuliaLang/julia/issues/43507
15+
# Fallback if working with non-square matrices
16+
length(x) != length(b) && return ldiv!(x, A, b)
1517
copyto!(x, b)
1618
ldiv!(A, x)
1719
end

0 commit comments

Comments
 (0)