Commits

mattip committed 10ded87

adapt Makefile to ubuntu linux

Comments (0)

Files changed (2)

site-packages/numpy/fft/Makefile

 all: fftpack.o
-	gcc -shared -W1,-soname,libfftpack.so.1 -o libfftpack.so.1.0 fftpack.o
+	gcc -shared -Wall -o libfftpack.so.1.0 fftpack.o
 
 fftpack.o: fftpack.c
 	gcc -O2 -Wall -fPIC -c fftpack.c

site-packages/numpy/fft/test/test_fftpack.py

 
 # Test FFTs through the numpy interface
 
-a   = np.array([85.0, 76.0, 42.0, 26.0, 51.0, 40.0, 79.0, 30.0], dtype='f8')
-f_a = fft(a)
+a   = numpy.array([85.0, 76.0, 42.0, 26.0, 51.0, 40.0, 79.0, 30.0], dtype='f8')
+f_a = fftpack.fft(a)
 assert_array_almost_equal(f_a, fft_slow(a))
 
 print f_a
-i_a = ifft(f_a)
+i_a = fftpack.ifft(f_a)
 print i_a
-assert_array_almost_equal(ifft(f_a), a)
+assert_array_almost_equal(fftpack.ifft(f_a), a)
 
-a = np.array([1+1j, 2+2j, 3-2j, 4+1j])
-assert_array_almost_equal(fft(a), fft_slow(a))
+a = numpy.array([1+1j, 2+2j, 3-2j, 4+1j])
+assert_array_almost_equal(fftpack.fft(a), fft_slow(a))