From fa48a77a6897f75d8142333f36286cab8e1ab8e2 Mon Sep 17 00:00:00 2001 From: Vasyl Vavrychuk Date: Sat, 15 Apr 2017 20:45:13 +0300 Subject: [PATCH 1/2] tools package missed after install --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8425e02..95a783d 100644 --- a/setup.py +++ b/setup.py @@ -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', From a8552bf9aad37680327726ca2137a02bdc1d8233 Mon Sep 17 00:00:00 2001 From: Vasyl Vavrychuk Date: Sat, 15 Apr 2017 20:58:48 +0300 Subject: [PATCH 2/2] fixed warning concerning float division using a non-integer number instead of an integer will result in an error in the future --- apfft/ifft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apfft/ifft.py b/apfft/ifft.py index 260ee10..6f6c10f 100644 --- a/apfft/ifft.py +++ b/apfft/ifft.py @@ -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,