Skip to content

Commit

Permalink
Fallback for non-square A
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 8, 2023
1 parent e3c63c9 commit 13927ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ _ldiv!(x, A, b) = ldiv!(x, A, b)

function _ldiv!(x::Vector, A::Factorization, b::Vector)
# workaround https://github.com/JuliaLang/julia/issues/43507
# Fallback if working with non-square matrices
length(x) != length(b) && return ldiv!(x, A, b)
copyto!(x, b)
ldiv!(A, x)
end
Expand Down

0 comments on commit 13927ce

Please sign in to comment.