Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lbfgs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ function push_common!(

# Update arrays a and b used in forward products.
if !op.inverse
data.opnorm_upper_bound -= data.norm_b[insert]
data.opnorm_upper_bound -= data.norm_b[insert]^2
data.b[insert] .= y ./ sqrt(ys)
data.norm_b[insert] = norm(data.b[insert])
data.opnorm_upper_bound += data.norm_b[insert]
data.opnorm_upper_bound += data.norm_b[insert]^2

@inbounds for i = 1:(data.mem)
k = mod(insert + i - 1, data.mem) + 1
Expand Down
Loading