Skip to content

Commit 02718a6

Browse files
authored
Use 3-arg ldiv!
Unless you need it to operate in-place, it would probably make more sense to use the 3-arg `ldiv!` everywhere
1 parent b58b8c0 commit 02718a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs.
55
end
66

77
copyto!(cache.u,cache.b)
8-
y = ldiv!(cache.cacheval, cache.u)
8+
y = ldiv!(cache.u, cache.cacheval, cache.b)
99
SciMLBase.build_linear_solution(alg,y,nothing,cache)
1010
end
1111

0 commit comments

Comments
 (0)