mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-11-30 04:56:52 +01:00
small renaming for type consistency
This commit is contained in:
parent
898551d3f9
commit
38df83344b
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue