diff options
Diffstat (limited to 'packages/gsl/src/Numeric/GSL/Fourier.hs')
-rw-r--r-- | packages/gsl/src/Numeric/GSL/Fourier.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/gsl/src/Numeric/GSL/Fourier.hs b/packages/gsl/src/Numeric/GSL/Fourier.hs index 734325b..d824b4f 100644 --- a/packages/gsl/src/Numeric/GSL/Fourier.hs +++ b/packages/gsl/src/Numeric/GSL/Fourier.hs | |||
@@ -16,14 +16,13 @@ module Numeric.GSL.Fourier ( | |||
16 | ifft | 16 | ifft |
17 | ) where | 17 | ) where |
18 | 18 | ||
19 | import Data.Packed | 19 | import Numeric.LinearAlgebra.HMatrix |
20 | import Numeric.GSL.Internal | 20 | import Numeric.GSL.Internal |
21 | import Data.Complex | ||
22 | import Foreign.C.Types | 21 | import Foreign.C.Types |
23 | import System.IO.Unsafe (unsafePerformIO) | 22 | import System.IO.Unsafe (unsafePerformIO) |
24 | 23 | ||
25 | genfft code v = unsafePerformIO $ do | 24 | genfft code v = unsafePerformIO $ do |
26 | r <- createVector (dim v) | 25 | r <- createVector (size v) |
27 | app2 (c_fft code) vec v vec r "fft" | 26 | app2 (c_fft code) vec v vec r "fft" |
28 | return r | 27 | return r |
29 | 28 | ||