From 69350aa40919a11a16fa245c8f304ee6a5c1497d Mon Sep 17 00:00:00 2001 From: Simon Carlson Date: Thu, 19 Jan 2023 11:38:24 +0100 Subject: [PATCH] changed from copy to .= --- src/trustRegion.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trustRegion.jl b/src/trustRegion.jl index cc5c6558e..1eeddc1d7 100644 --- a/src/trustRegion.jl +++ b/src/trustRegion.jl @@ -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})