Skip to content

Commit 6b54a31

Browse files
committed
use multiply param out to save result
1 parent 72abe7f commit 6b54a31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdp/pyfftw_sdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __call__(self, Q, T, n_threads=1, planning_flag="FFTW_ESTIMATE"):
9898
# RFFT(Q)
9999
# Scale by 1/next_fast_n to account for
100100
# FFTW's unnormalized inverse FFT via execute()
101-
real_arr[:m] = Q[::-1] / next_fast_n
101+
np.multiply(Q[::-1], 1.0 / next_fast_n, out=real_arr[:m])
102102
real_arr[m:] = 0.0
103103
rfft_obj.execute() # output is in complex_arr
104104

0 commit comments

Comments
 (0)