From 38df83344ba3496364e6a5246f88093294d50440 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Tue, 4 Nov 2025 09:36:10 +0000 Subject: [PATCH] small renaming for type consistency --- pyerrors/mpm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyerrors/mpm.py b/pyerrors/mpm.py index 7a85ace3..dd3a1bc4 100644 --- a/pyerrors/mpm.py +++ b/pyerrors/mpm.py @@ -52,10 +52,10 @@ def matrix_pencil_method(corrs: list[Obs], k: int=1, p: Optional[int]=None, **kw matrix = [] for n in range(data_sets): matrix.append(scipy.linalg.hankel(data[n][:n_data - p], data[n][n_data - p - 1:])) - matrix = np.array(matrix) + matrix_array = np.array(matrix) # Construct y1 and y2 - y1 = np.concatenate(matrix[:, :, :p]) - y2 = np.concatenate(matrix[:, :, 1:]) + y1 = np.concatenate(matrix_array[:, :, :p]) + y2 = np.concatenate(matrix_array[:, :, 1:]) # Apply SVD to y2 u, s, vh = svd(y2, **kwargs) # Construct z from y1 and SVD of y2, setting all singular values beyond the kth to zero