Skip to content

Commit 0b47fe1

Browse files
Merge pull request #76 from SciML/resize
hotfix: manually call 2-argument ldiv! to avoid resize! problems
2 parents 0e4de70 + 328fa26 commit 0b47fe1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinearSolve"
22
uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
33
authors = ["SciML"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/factorization.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs.
44
cache = set_cacheval(cache, fact)
55
end
66

7-
y = ldiv!(cache.u, cache.cacheval, cache.b)
7+
copyto!(cache.u,cache.b)
8+
y = ldiv!(cache.cacheval, cache.u)
89
SciMLBase.build_linear_solution(alg,y,nothing,cache)
910
end
1011

0 commit comments

Comments
 (0)