diff options
Diffstat (limited to 'lib/Numeric/GSL/Fourier.hs')
-rw-r--r-- | lib/Numeric/GSL/Fourier.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Numeric/GSL/Fourier.hs b/lib/Numeric/GSL/Fourier.hs index e975fbf..4b08625 100644 --- a/lib/Numeric/GSL/Fourier.hs +++ b/lib/Numeric/GSL/Fourier.hs | |||
@@ -26,7 +26,8 @@ import Foreign | |||
26 | 26 | ||
27 | genfft code v = unsafePerformIO $ do | 27 | genfft code v = unsafePerformIO $ do |
28 | r <- createVector (dim v) | 28 | r <- createVector (dim v) |
29 | c_fft code // vec v // vec r // check "fft" [v] | 29 | ww2 withVector v withVector r $ \ v r -> |
30 | c_fft code // v // r // check "fft" | ||
30 | return r | 31 | return r |
31 | 32 | ||
32 | foreign import ccall "gsl-aux.h fft" c_fft :: Int -> TCVCV | 33 | foreign import ccall "gsl-aux.h fft" c_fft :: Int -> TCVCV |