Skip to content

Commit 69350aa

Browse files
committed
changed from copy to .=
1 parent 5744563 commit 69350aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trustRegion.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ function dogleg!(cache::TrustRegionCache)
355355
end
356356

357357
function take_step!(cache::TrustRegionCache{true})
358-
cache.u = copy(cache.u_tmp)
359-
cache.fu = copy(cache.fu_new)
358+
cache.u .= cache.u_tmp
359+
cache.fu .= cache.fu_new
360360
end
361361

362362
function take_step!(cache::TrustRegionCache{false})

0 commit comments

Comments
 (0)