Commit cf333885 authored by Houtan Bastani's avatar Houtan Bastani

Use broadcast to multiply matrix

parent 05e3ad78
......@@ -211,7 +211,7 @@ function trustregion(f!::Function, j!::Function, x0::Vector{Float64}, factor::Fl
end
δ *= factor
else
wa.fjaccnorm__ .= max.(.1*wa.fjaccnorm__, wa.fjaccnorm)
wa.fjaccnorm__ .= max.(0.1.*wa.fjaccnorm__, wa.fjaccnorm)
end
# Determine the direction p (with trust region model defined in dogleg routine).
dogleg!(wa.p, wa.fjac, wa.fval, wa.fjaccnorm__, δ, wa.s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment