Skip to content

Commit

Permalink
use undefmatrix to init jacobian
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Nov 28, 2022
1 parent d721e0a commit 4115605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[compat]
ArrayInterfaceCore = "0.1.1"
ArrayInterfaceCore = "0.1.22"
DiffEqBase = "6"
FiniteDiff = "2"
ForwardDiff = "0.10.3"
Expand Down
2 changes: 1 addition & 1 deletion src/raphson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ end

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

linprob = LinearProblem(J, _vec(zero(u)); u0 = _vec(zero(u)))
weight = similar(u)
Expand Down

0 comments on commit 4115605

Please sign in to comment.