Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apfft/ifft.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def ifft(yg):
M = apfft.tools.exp(A)
X = M.dot(yg.reshape((N_min, -1)))
while X.shape[0] < N:
X_even = X[:, :X.shape[1] / 2]
X_odd = X[:, X.shape[1] / 2:]
X_even = X[:, :X.shape[1] // 2]
X_odd = X[:, X.shape[1] // 2:]
A = mp.mpc(1j) * mp.pi * apfft.tools.arange(X.shape[0]) / mp.mpf(X.shape[0])
factor = apfft.tools.exp(A)[:, None]
X = np.vstack([X_even + factor * X_odd,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from distutils.core import setup
setup(
name = 'apfft',
packages = ['apfft'], # this must be the same as the name above
packages = ['apfft', 'apfft.tools'], # this must be the same as the name above
version = '0.3',
description = 'Provides arbitrary precision FFTs using the mpmath package',
author = 'David Stein',
Expand Down