module Bindings.Gsl.DiscreteHankelTransforms where
import Foreign.Ptr (Ptr,FunPtr,plusPtr)
import Foreign.Ptr (wordPtrToPtr,castPtrToFunPtr)
import Foreign.Storable
import Foreign.C.Types
import Foreign.C.String (CString,CStringLen,CWString,CWStringLen)
import Foreign.Marshal.Array (peekArray,pokeArray)
import Data.Int
import Data.Word
data C'gsl_dht = C'gsl_dht{
c'gsl_dht'size :: CSize
,
c'gsl_dht'nu :: CDouble
,
c'gsl_dht'xmax :: CDouble
,
c'gsl_dht'kmax :: CDouble
,
c'gsl_dht'j :: Ptr CDouble
,
c'gsl_dht'Jjj :: Ptr CDouble
,
c'gsl_dht'J2 :: Ptr CDouble
} deriving (Eq,Show)
instance Storable C'gsl_dht where
sizeOf _ = 40
alignment = sizeOf
peek p = do
v0 <- peekByteOff p 0
v1 <- peekByteOff p 4
v2 <- peekByteOff p 12
v3 <- peekByteOff p 20
v4 <- peekByteOff p 28
v5 <- peekByteOff p 32
v6 <- peekByteOff p 36
return $ C'gsl_dht v0 v1 v2 v3 v4 v5 v6
poke p (C'gsl_dht v0 v1 v2 v3 v4 v5 v6) = do
pokeByteOff p 0 v0
pokeByteOff p 4 v1
pokeByteOff p 12 v2
pokeByteOff p 20 v3
pokeByteOff p 28 v4
pokeByteOff p 32 v5
pokeByteOff p 36 v6
return ()
foreign import ccall "gsl_dht_alloc" c'gsl_dht_alloc
:: CSize -> IO (Ptr C'gsl_dht)
foreign import ccall "&gsl_dht_alloc" p'gsl_dht_alloc
:: FunPtr (CSize -> IO (Ptr C'gsl_dht))
foreign import ccall "gsl_dht_new" c'gsl_dht_new
:: CSize -> CDouble -> CDouble -> IO (Ptr C'gsl_dht)
foreign import ccall "&gsl_dht_new" p'gsl_dht_new
:: FunPtr (CSize -> CDouble -> CDouble -> IO (Ptr C'gsl_dht))
foreign import ccall "gsl_dht_init" c'gsl_dht_init
:: Ptr C'gsl_dht -> CDouble -> CDouble -> IO CInt
foreign import ccall "&gsl_dht_init" p'gsl_dht_init
:: FunPtr (Ptr C'gsl_dht -> CDouble -> CDouble -> IO CInt)
foreign import ccall "gsl_dht_x_sample" c'gsl_dht_x_sample
:: Ptr C'gsl_dht -> CInt -> IO CDouble
foreign import ccall "&gsl_dht_x_sample" p'gsl_dht_x_sample
:: FunPtr (Ptr C'gsl_dht -> CInt -> IO CDouble)
foreign import ccall "gsl_dht_k_sample" c'gsl_dht_k_sample
:: Ptr C'gsl_dht -> CInt -> IO CDouble
foreign import ccall "&gsl_dht_k_sample" p'gsl_dht_k_sample
:: FunPtr (Ptr C'gsl_dht -> CInt -> IO CDouble)
foreign import ccall "gsl_dht_free" c'gsl_dht_free
:: Ptr C'gsl_dht -> IO ()
foreign import ccall "&gsl_dht_free" p'gsl_dht_free
:: FunPtr (Ptr C'gsl_dht -> IO ())
foreign import ccall "gsl_dht_apply" c'gsl_dht_apply
:: Ptr C'gsl_dht -> Ptr CDouble -> Ptr CDouble -> IO CInt
foreign import ccall "&gsl_dht_apply" p'gsl_dht_apply
:: FunPtr (Ptr C'gsl_dht -> Ptr CDouble -> Ptr CDouble -> IO CInt)