1
Fork 0

python(denoising): Fixed warning

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2023-03-29 03:55:35 +02:00 committed by prescientmoon
parent 58c07abff0
commit f1719e9375
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -170,7 +170,7 @@ def largest_eigenvalue(a, c, e, initial_x, kmax):
assert_valid_tridiagonal(a, c, e) assert_valid_tridiagonal(a, c, e)
x = initial_x x = initial_x
for i in range(kmax): for _ in range(kmax):
q = multiply_vector(a, c, e, x) q = multiply_vector(a, c, e, x)
assert not np.allclose(q, 0) assert not np.allclose(q, 0)
x = q/np.linalg.norm(q) x = q/np.linalg.norm(q)