Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffPrecTest"
uuid = "bb4bfe13-bfd7-5c6f-a2d2-8072376c6806"
authors = ["Mladen Kolar <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
CoordinateDescent = "c00ed354-b9be-54b8-8a23-c5ac771bc43a"
Expand Down
4 changes: 4 additions & 0 deletions src/invHessianEstimationASym.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ function CoordinateDescent.descendCoordinate!(
newVal = cdprox!(g, x, j, a)
h = newVal - oldVal

# nothing to update when the coordinate did not move, as for most
# coordinates that stay at zero in a full pass
iszero(h) && return h

# update internals
for ac=1:p, ar=1:p
@inbounds A[ar, ac] += h * Σx[ar, ri] * Σy[ci, ac]
Expand Down
4 changes: 4 additions & 0 deletions src/invHessianEstimationSymReduced.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ function CoordinateDescent.descendCoordinate!(
newVal = cdprox!(g, x, j, a)
h = newVal - oldVal

# nothing to update when the coordinate did not move, as for most
# coordinates that stay at zero in a full pass
iszero(h) && return h

# update internals
if ri == ci
for ac=1:p, ar=1:p
Expand Down
Loading