ContentsIndex
Optimize.Parameter
Description
Defines the mapping between haskell types and a set of optimization parameters used to represent said type.
Synopsis
smallDouble :: Double
data ParamInfo = ParamInfo {
limitLow :: !Double
limitHigh :: !Double
isIntegral :: !Bool
}
data Limit a = Limit {
minLimit :: (Maybe a)
maxLimit :: (Maybe a)
}
limitPositive :: Num a => Limit a
limitNegative :: Num a => Limit a
limitUnit :: Num a => Limit a
class Empty a where
empty :: a
class Empty z => Parameter z x | x -> z where
pokeParam :: z -> x -> Ptr Double -> IO ()
peekParam :: z -> Ptr Double -> IO x
paramInfo :: x -> z -> [ParamInfo] -> [ParamInfo]
numParams :: x -> z -> Int
Produced by Haddock version 0.6