Skip to content

Commit

Permalink
Switch cache vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 20, 2023
1 parent 5af2da0 commit 0640676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/levenberg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ function perform_step!(cache::LevenbergMarquardtCache{true})

# Geodesic acceleration (step_size = v + a / 2).
@unpack v, α_geodesic, h = cache
_vec(cache.du) .= _vec(u) .+ h .* _vec(v)
f(cache.fu_tmp, cache.du, p)
_vec(cache.u_tmp) .= _vec(u) .+ h .* _vec(v)
f(cache.fu_tmp, cache.u_tmp, p)

Check warning on line 222 in src/levenberg.jl

View check run for this annotation

Codecov / codecov/patch

src/levenberg.jl#L221-L222

Added lines #L221 - L222 were not covered by tests

# The following lines do: cache.a = -J \ cache.fu_tmp
mul!(_vec(cache.Jv), J, _vec(v))

Check warning on line 225 in src/levenberg.jl

View check run for this annotation

Codecov / codecov/patch

src/levenberg.jl#L225

Added line #L225 was not covered by tests
Expand Down

0 comments on commit 0640676

Please sign in to comment.