From 42636235964188c5391608a63deefa1fe3af254f Mon Sep 17 00:00:00 2001 From: Tronic Date: Tue, 14 Jan 2025 10:35:27 +0100 Subject: [PATCH] Fix typo in struct name (scrach -> scratch) --- projects/cache-friendly-fft/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/cache-friendly-fft/__init__.py b/projects/cache-friendly-fft/__init__.py index 08f1acac49..15fd31616c 100644 --- a/projects/cache-friendly-fft/__init__.py +++ b/projects/cache-friendly-fft/__init__.py @@ -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 @@ -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: