Skip to content

Commit

Permalink
changed from copy to .=
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltadahl committed Jan 19, 2023
1 parent 5744563 commit 69350aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trustRegion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ function dogleg!(cache::TrustRegionCache)
end

function take_step!(cache::TrustRegionCache{true})
cache.u = copy(cache.u_tmp)
cache.fu = copy(cache.fu_new)
cache.u .= cache.u_tmp
cache.fu .= cache.fu_new
end

function take_step!(cache::TrustRegionCache{false})
Expand Down

0 comments on commit 69350aa

Please sign in to comment.