Skip to content

Commit 6bc1bd0

Browse files
oscarddssmithChrisRackauckas
authored andcommitted
use undefmatrix to init jacobian
1 parent abec47c commit 6bc1bd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
1919
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
2020

2121
[compat]
22-
ArrayInterfaceCore = "0.1.1"
22+
ArrayInterfaceCore = "0.1.22"
2323
DiffEqBase = "6"
2424
FiniteDiff = "2"
2525
ForwardDiff = "0.10.3"

src/raphson.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454

5555
function jacobian_caches(alg::NewtonRaphson, f, u, p, ::Val{true})
5656
uf = JacobianWrapper(f, p)
57-
J = false .* u .* u'
57+
J = ArrayInterfaceCore.undefmatrix(u)
5858

5959
linprob = LinearProblem(J, _vec(zero(u)); u0 = _vec(zero(u)))
6060
weight = similar(u)

0 commit comments

Comments
 (0)