Skip to content

Commit

Permalink
Merge pull request scipy#5375 from Newman101/PEP8_ffpack
Browse files Browse the repository at this point in the history
MAINT: benchmarks: PEP8 amendments to ffpack_basic.py
  • Loading branch information
larsmans committed Oct 16, 2015
2 parents 7d39802 + 644f4c0 commit ebabb49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/benchmarks/fftpack_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ def random(size):
def direct_dft(x):
x = asarray(x)
n = len(x)
y = zeros(n,dtype=cdouble)
y = zeros(n, dtype=cdouble)
w = -arange(n)*(2j*pi/n)
for i in range(n):
y[i] = dot(exp(i*w),x)
y[i] = dot(exp(i*w), x)
return y


def direct_idft(x):
x = asarray(x)
n = len(x)
y = zeros(n,dtype=cdouble)
y = zeros(n, dtype=cdouble)
w = arange(n)*(2j*pi/n)
for i in range(n):
y[i] = dot(exp(i*w),x)/n
y[i] = dot(exp(i*w), x)/n
return y


Expand Down

0 comments on commit ebabb49

Please sign in to comment.