Skip to content

Commit 96b68b5

Browse files
committed
minor change
1 parent 61d8351 commit 96b68b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stumpy/sdp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __call__(self, Q, T, n_threads=1, planning_flag="FFTW_ESTIMATE"):
293293
rfft_obj.input_array[:n] = T
294294
rfft_obj.input_array[n:] = 0.0
295295
rfft_obj.execute()
296-
rfft_of_T = rfft_obj.output_array.copy()
296+
rfft_T = rfft_obj.output_array.copy()
297297

298298
# Step 2
299299
# Compute RFFT of Q (reversed, scaled, and zero-padded)
@@ -302,11 +302,11 @@ def __call__(self, Q, T, n_threads=1, planning_flag="FFTW_ESTIMATE"):
302302
np.multiply(Q[::-1], 1.0 / next_fast_n, out=rfft_obj.input_array[:m])
303303
rfft_obj.input_array[m:] = 0.0
304304
rfft_obj.execute()
305-
rfft_of_Q = rfft_obj.output_array
305+
rfft_Q = rfft_obj.output_array
306306

307307
# Step 3
308308
# Convert back to time domain by taking the inverse RFFT
309-
np.multiply(rfft_of_T, rfft_of_Q, out=irfft_obj.input_array)
309+
np.multiply(rfft_T, rfft_Q, out=irfft_obj.input_array)
310310
irfft_obj.execute()
311311

312312
return irfft_obj.output_array[m - 1 : n] # valid portion

0 commit comments

Comments
 (0)