hmatrix-0.1.0.0: Linear algebra and numerical computationsSource codeContentsIndex
Data.Packed.Internal.Common
Portabilityportable (uses FFI)
Stabilityprovisional
MaintainerAlberto Ruiz <aruiz@um.es>
Description
Development utilities.
Synopsis
debug :: Show a => a -> a
on :: (a -> a -> b) -> (t -> a) -> t -> t -> b
partit :: Int -> [a] -> [[a]]
common :: Eq a => (b -> a) -> [b] -> Maybe a
(//) :: x -> (x -> y) -> y
errorCode :: Int -> String
check :: String -> IO Int -> IO ()
gsl_strerror :: Int -> IO (Ptr CChar)
mkfun :: (Double -> Ptr () -> Double) -> IO (FunPtr (Double -> Ptr () -> Double))
type PD = Ptr Double
type PC = Ptr (Complex Double)
type TV = Int -> PD -> IO Int
type TVV = Int -> PD -> TV
type TVVV = Int -> PD -> TVV
type TM = Int -> Int -> PD -> IO Int
type TMM = Int -> Int -> PD -> TM
type TMMM = Int -> Int -> PD -> TMM
type TVM = Int -> PD -> TM
type TVVM = Int -> PD -> TVM
type TMV = Int -> Int -> PD -> TV
type TMVM = Int -> Int -> PD -> TVM
type TMMVM = Int -> Int -> PD -> TMVM
type TCM = Int -> Int -> PC -> IO Int
type TCVCM = Int -> PC -> TCM
type TCMCVCM = Int -> Int -> PC -> TCVCM
type TMCMCVCM = Int -> Int -> PD -> TCMCVCM
type TCMCMCVCM = Int -> Int -> PC -> TCMCVCM
type TCMCM = Int -> Int -> PC -> TCM
type TVCM = Int -> PD -> TCM
type TCMVCM = Int -> Int -> PC -> TVCM
type TCMCMVCM = Int -> Int -> PC -> TCMVCM
type TCMCMCM = Int -> Int -> PC -> TCMCM
type TCV = Int -> PC -> IO Int
type TCVCV = Int -> PC -> TCV
type TCVCVCV = Int -> PC -> TCVCV
type TCMCV = Int -> Int -> PC -> TCV
type TVCV = Int -> PD -> TCV
type TCVM = Int -> PC -> TM
type TMCVM = Int -> Int -> PD -> TCVM
type TMMCVM = Int -> Int -> PD -> TMCVM
Documentation
debug :: Show a => a -> aSource
debug x = trace (show x) x
on :: (a -> a -> b) -> (t -> a) -> t -> t -> bSource
useful for expressions like sortBy (compare `on` length)
partit :: Int -> [a] -> [[a]]Source
partit 3 [1..9] == [[1,2,3],[4,5,6],[7,8,9]]
common :: Eq a => (b -> a) -> [b] -> Maybe aSource
obtains the common value of a property of a list
(//) :: x -> (x -> y) -> ySource
postfix function application (flip ($))
errorCode :: Int -> StringSource
error codes for the auxiliary functions required by the wrappers
check :: String -> IO Int -> IO ()Source
check the error code
gsl_strerror :: Int -> IO (Ptr CChar)Source
description of GSL error codes
mkfun :: (Double -> Ptr () -> Double) -> IO (FunPtr (Double -> Ptr () -> Double))Source
conversion of Haskell functions into function pointers that can be used in the C side
type PD = Ptr DoubleSource
type PC = Ptr (Complex Double)Source
type TV = Int -> PD -> IO IntSource
type TVV = Int -> PD -> TVSource
type TVVV = Int -> PD -> TVVSource
type TM = Int -> Int -> PD -> IO IntSource
type TMM = Int -> Int -> PD -> TMSource
type TMMM = Int -> Int -> PD -> TMMSource
type TVM = Int -> PD -> TMSource
type TVVM = Int -> PD -> TVMSource
type TMV = Int -> Int -> PD -> TVSource
type TMVM = Int -> Int -> PD -> TVMSource
type TMMVM = Int -> Int -> PD -> TMVMSource
type TCM = Int -> Int -> PC -> IO IntSource
type TCVCM = Int -> PC -> TCMSource
type TCMCVCM = Int -> Int -> PC -> TCVCMSource
type TMCMCVCM = Int -> Int -> PD -> TCMCVCMSource
type TCMCMCVCM = Int -> Int -> PC -> TCMCVCMSource
type TCMCM = Int -> Int -> PC -> TCMSource
type TVCM = Int -> PD -> TCMSource
type TCMVCM = Int -> Int -> PC -> TVCMSource
type TCMCMVCM = Int -> Int -> PC -> TCMVCMSource
type TCMCMCM = Int -> Int -> PC -> TCMCMSource
type TCV = Int -> PC -> IO IntSource
type TCVCV = Int -> PC -> TCVSource
type TCVCVCV = Int -> PC -> TCVCVSource
type TCMCV = Int -> Int -> PC -> TCVSource
type TVCV = Int -> PD -> TCVSource
type TCVM = Int -> PC -> TMSource
type TMCVM = Int -> Int -> PD -> TCVMSource
type TMMCVM = Int -> Int -> PD -> TMCVMSource
Produced by Haddock version 2.4.2