Skip to content

Commit

Permalink
Fix typo in struct name (scrach -> scratch)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pronoss authored Jan 14, 2025
1 parent 1590611 commit 4263623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/cache-friendly-fft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _fft_inplace(x, scratch):
_fft_inplace_evenpow(x, scratch)


def _scrach_length(lb_n):
def _scratch_length(lb_n):
"""Find the amount of scratch space required to run the FFT.
Layers where the input's length is an even power of two do not
Expand Down Expand Up @@ -206,7 +206,7 @@ def fft(x):
# We have one scratch buffer for the whole algorithm. If we were to
# parallelize it, we'd need one thread-local buffer for each worker
# thread.
scratch_len = _scrach_length(lb_n)
scratch_len = _scratch_length(lb_n)
if scratch_len == 0:
scratch = None
else:
Expand Down

0 comments on commit 4263623

Please sign in to comment.