Skip to content

Commit f368164

Browse files
Apply suggestions from code review
Co-authored-by: Dominique <[email protected]>
1 parent e49f82b commit f368164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function opnorm_eig(B; max_attempts::Int = 3)
1919
while !(have_eig || attempt >= max_attempts)
2020
attempt += 1
2121
try
22-
# Perform eigendecomposition
22+
# Estimate largest eigenvalue in absolute value
2323
d, nconv, niter, nmult, resid = eigs(B; nev = nev, ncv = ncv, which = :LM, ritzvec = false, check = 1)
2424

2525
# Check if eigenvalue has converged
@@ -55,7 +55,7 @@ function opnorm_svd(J; max_attempts::Int = 3)
5555
while !(have_svd || attempt >= max_attempts)
5656
attempt += 1
5757
try
58-
# Perform singular value decomposition
58+
# Estimate largest singular value
5959
s, nconv, niter, nmult, resid = svds(J; nsv = nsv, ncv = ncv, ritzvec = false, check = 1)
6060

6161
# Check if singular value has converged

0 commit comments

Comments
 (0)