Skip to content

Commit c519783

Browse files
authored
Resolve #1
Closes #1
1 parent 00f6dff commit c519783

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

pyfftlog.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@
180180
"""
181181
import numpy as np
182182
from scipy.special import loggamma
183-
from scipy.fftpack._fftpack import drfft
184-
# from scipy.fftpack import rfft, irfft
185-
# from scipy.fftpack.basic import _raw_fft
183+
from scipy.fftpack import rfft, irfft
186184

187185

188186
def fhti(n, mu, dlnr, q=0, kr=1, kropt=0):
@@ -599,9 +597,7 @@ def fhtq(a, xsave, tdir=1):
599597
n = fct.size
600598

601599
# normal FFT
602-
# fct = rfft(fct)
603-
# _raw_fft(fct, n, -1, 1, 1, _fftpack.drfft)
604-
fct = drfft(fct, n, 1, 0)
600+
fct = rfft(fct)
605601

606602
m = np.arange(1, n//2, dtype=int) # index variable
607603
if q == 0: # unbiased (q = 0) transform
@@ -667,9 +663,7 @@ def fhtq(a, xsave, tdir=1):
667663
fct[-1] /= ar
668664

669665
# normal FFT back
670-
# fct = irfft(fct)
671-
# _raw_fft(fct, n, -1, -1, 1, _fftpack.drfft)
672-
fct = drfft(fct, n, -1, 1)
666+
fct = irfft(fct)
673667

674668
# reverse the array and at the same time undo the FFTs' multiplication by n
675669
# => Just reverse the array, the rest is already done in drfft.

0 commit comments

Comments
 (0)