1
Fork 0

python(denoising): Removed test code

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2023-03-30 02:52:38 +02:00 committed by prescientmoon
parent 7cf93fd66f
commit d0ae4d55b5
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -219,17 +219,4 @@ def transpose(a, c, e):
Computes the transpose of a tridiagonal matrix.
"""
return create(a, e, c)
# Small sanity check for the above code
def main():
a, c, e = create(3*np.ones(4), 2*np.ones(3), 3*np.ones(3))
rhs = np.ones(4)
result = solve(a, c, e, rhs)
print(f"m={to_array(a, c, e)}")
print(f"{rhs=}")
print(f"{result=}")
print(to_array(a, c, e) @ result)
print(largest_eigenvalue(a, c, e, np.ones(4), 50))
# main()