We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4bb06 commit ace1dfbCopy full SHA for ace1dfb
1 file changed
src/lbfgs.jl
@@ -228,10 +228,10 @@ function push_common!(
228
229
# Update arrays a and b used in forward products.
230
if !op.inverse
231
- data.opnorm_upper_bound -= data.norm_b[insert]
+ data.opnorm_upper_bound -= data.norm_b[insert]^2
232
data.b[insert] .= y ./ sqrt(ys)
233
data.norm_b[insert] = norm(data.b[insert])
234
- data.opnorm_upper_bound += data.norm_b[insert]
+ data.opnorm_upper_bound += data.norm_b[insert]^2
235
236
@inbounds for i = 1:(data.mem)
237
k = mod(insert + i - 1, data.mem) + 1
0 commit comments