python(denoising): Fixed warning
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
58c07abff0
commit
f1719e9375
|
@ -170,7 +170,7 @@ def largest_eigenvalue(a, c, e, initial_x, kmax):
|
|||
assert_valid_tridiagonal(a, c, e)
|
||||
|
||||
x = initial_x
|
||||
for i in range(kmax):
|
||||
for _ in range(kmax):
|
||||
q = multiply_vector(a, c, e, x)
|
||||
assert not np.allclose(q, 0)
|
||||
x = q/np.linalg.norm(q)
|
||||
|
|
Loading…
Reference in a new issue