Skip to content

Commit b562618

Browse files
leburgelJutho
andauthored
Update src/common/pullbacks.jl
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
1 parent 7e53b95 commit b562618

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/common/pullbacks.jl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ Reference: https://doi.org/10.1016/j.aml.2009.01.012.
5252
"""
5353
function accelerative_smith_iteration!(X, Xₙ, G, w, atol, maxiter)
5454
Gₙ = similar(G)
55+
wmax = maximum(abs, w)
56+
w ./= wmax
57+
G .*= wmax
5558
for k in 1:maxiter
5659
Xₙ = rmul!(mul!(Xₙ, G, X), Diagonal(w))
5760
if maximum(abs, Xₙ) < atol

0 commit comments

Comments
 (0)