Skip to content

Commit 341332f

Browse files
Update src/compressed_lbfgs.jl
Co-authored-by: Alexis Montoison <[email protected]>
1 parent 11e3b34 commit 341332f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compressed_lbfgs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function Base.Matrix(op::CompressedLBFGSOperator{T,M,V}) where {T,M,V}
148148
(op.k > 0) && (_C[1:op.k, 1:op.k] .= transpose(op.Sₖ[:, 1:op.k]) * op.Sₖ[:, 1:op.k])
149149
(op.k > 0) && (_C[1:op.k, op.k+1:2*op.k] .= op.Lₖ[1:op.k, 1:op.k])
150150
(op.k > 0) && (_C[op.k+1:2*op.k, 1:op.k] .= transpose(op.Lₖ[1:op.k, 1:op.k]))
151-
(op.k > 0) && (_C[op.k+1:2*op.k, op.k+1:2*op.k] .= .- op.Dₖ[1:op.k, 1:op.k])
151+
(op.k > 0) && (_C[op.k+1:2*op.k, op.k+1:2*op.k] .-= op.Dₖ[1:op.k, 1:op.k])
152152
C = inv(_C)
153153

154154
Bₖ = B₀ .- BSY * C * transpose(BSY)

0 commit comments

Comments
 (0)