We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d763256 commit 3269c28Copy full SHA for 3269c28
src/R2N.jl
@@ -132,7 +132,8 @@ function R2N(
132
quasiNewtTest = isa(f, QuasiNewtonModel)
133
Bk = hess_op(f, xk)
134
135
- λmax = opnorm(Bk)
+ λmax, found_λ = opnorm(Bk)
136
+ found_λ || error("operator norm computation failed")
137
νInv = (1 + θ) * (σk + λmax)
138
sqrt_ξ1_νInv = one(R)
139
@@ -247,7 +248,8 @@ function R2N(
247
248
push!(f, s, ∇fk - ∇fk⁻)
249
end
250
251
252
253
∇fk⁻ .= ∇fk
254
255
0 commit comments