From d0ae4d55b57fdbba5e3b726efb871e78a74242fc Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 30 Mar 2023 02:52:38 +0200 Subject: [PATCH] python(denoising): Removed test code Signed-off-by: prescientmoon --- python/denoising/modules/tridiagonal.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/python/denoising/modules/tridiagonal.py b/python/denoising/modules/tridiagonal.py index 83124ad..1483481 100644 --- a/python/denoising/modules/tridiagonal.py +++ b/python/denoising/modules/tridiagonal.py @@ -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()