Skip to content

Commit deebf3b

Browse files
Update src/factorization.jl
1 parent 1b9e40f commit deebf3b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/factorization.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
function _ldiv!(x, A, b)
2-
# work around https://github.com/JuliaLang/julia/issues/43507
3-
if @which(ldiv!(x,A,b)) == which(ldiv!,Tuple{LU{Float64, Matrix{Float64}},Vector{Float64}})
4-
copyto!(x, b)
5-
ldiv!(A, x)
6-
else
7-
ldiv!(x, A, b)
8-
end
1+
_ldiv!(x, A, b) = ldiv!(x, A, b)
2+
function _ldiv!(x::Vector, A::Factorization, b::Vector)
3+
copyto!(x, b)
4+
ldiv!(A, x)
95
end
106

117

0 commit comments

Comments
 (0)