Skip to content

Commit

Permalink
Fix band_values for multidimensional arrays in toeplitz operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuhyun Sohn authored and pchanial committed Jan 22, 2025
1 parent 516392c commit 789db99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/furax/core/_toeplitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
if method not in self.METHODS:
raise ValueError(f'Invalid method {method}. Choose from: {", ".join(self.METHODS)}')

band_number = 2 * band_values.size - 1
band_number = 2 * band_values.shape[-1] - 1
if fft_size is not None:
if not method.startswith('overlap_'):
raise ValueError('The FFT size is only used by the overlap methods.')
Expand Down

0 comments on commit 789db99

Please sign in to comment.