Skip to content

Commit

Permalink
Merge pull request #104 from oscardssmith/use-undef-matrix-to-init-ja…
Browse files Browse the repository at this point in the history
…cobian

use undefmatrix to init jacobian
  • Loading branch information
ChrisRackauckas authored Dec 2, 2022
2 parents abec47c + 6bc1bd0 commit 903b483
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 903b483

Please sign in to comment.