summaryrefslogtreecommitdiff
path: root/packages/hmatrix/src/Numeric/GSL/Fourier.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hmatrix/src/Numeric/GSL/Fourier.hs')
-rw-r--r--packages/hmatrix/src/Numeric/GSL/Fourier.hs15
1 files changed, 6 insertions, 9 deletions
diff --git a/packages/hmatrix/src/Numeric/GSL/Fourier.hs b/packages/hmatrix/src/Numeric/GSL/Fourier.hs
index 86aedd6..734325b 100644
--- a/packages/hmatrix/src/Numeric/GSL/Fourier.hs
+++ b/packages/hmatrix/src/Numeric/GSL/Fourier.hs
@@ -1,26 +1,23 @@
1{-# LANGUAGE ForeignFunctionInterface #-}
2-----------------------------------------------------------------------------
3{- | 1{- |
4Module : Numeric.GSL.Fourier 2Module : Numeric.GSL.Fourier
5Copyright : (c) Alberto Ruiz 2006 3Copyright : (c) Alberto Ruiz 2006
6License : GPL-style 4License : GPL
7 5Maintainer : Alberto Ruiz
8Maintainer : Alberto Ruiz (aruiz at um dot es)
9Stability : provisional 6Stability : provisional
10Portability : uses ffi
11 7
12Fourier Transform. 8Fourier Transform.
13 9
14<http://www.gnu.org/software/gsl/manual/html_node/Fast-Fourier-Transforms.html#Fast-Fourier-Transforms> 10<http://www.gnu.org/software/gsl/manual/html_node/Fast-Fourier-Transforms.html#Fast-Fourier-Transforms>
15 11
16-} 12-}
17----------------------------------------------------------------------------- 13
18module Numeric.GSL.Fourier ( 14module Numeric.GSL.Fourier (
19 fft, 15 fft,
20 ifft 16 ifft
21) where 17) where
22 18
23import Data.Packed.Internal 19import Data.Packed
20import Numeric.GSL.Internal
24import Data.Complex 21import Data.Complex
25import Foreign.C.Types 22import Foreign.C.Types
26import System.IO.Unsafe (unsafePerformIO) 23import System.IO.Unsafe (unsafePerformIO)
@@ -30,7 +27,7 @@ genfft code v = unsafePerformIO $ do
30 app2 (c_fft code) vec v vec r "fft" 27 app2 (c_fft code) vec v vec r "fft"
31 return r 28 return r
32 29
33foreign import ccall unsafe "gsl-aux.h fft" c_fft :: CInt -> TCVCV 30foreign import ccall unsafe "gsl-aux.h fft" c_fft :: CInt -> TCV (TCV Res)
34 31
35 32
36{- | Fast 1D Fourier transform of a 'Vector' @(@'Complex' 'Double'@)@ using /gsl_fft_complex_forward/. It uses the same scaling conventions as GNU Octave. 33{- | Fast 1D Fourier transform of a 'Vector' @(@'Complex' 'Double'@)@ using /gsl_fft_complex_forward/. It uses the same scaling conventions as GNU Octave.