ContentsIndex
Optimize.Parameter
Description
Defines the mapping between haskell types and a set of optimization parameters used to represent said type.
Documentation
smallDouble :: Double
data ParamInfo
Constructors
ParamInfo
limitLow :: !Double
limitHigh :: !Double
isIntegral :: !Bool
data Limit a
Constructors
Limit
minLimit :: (Maybe a)
maxLimit :: (Maybe a)
show/hide Instances
Empty (Limit a)
Parameter (Limit Double) Double
Parameter (Limit Float) Float
Parameter (Limit Int) Int
limitPositive :: Num a => Limit a
limitNegative :: Num a => Limit a
limitUnit :: Num a => Limit a
class Empty a where
Methods
empty :: a
show/hide Instances
Empty ()
(Empty x, Empty y) => Empty (x, y)
(Empty x, Empty y, Empty z) => Empty (x, y, z)
Empty (Limit a)
Empty (Maybe a)
class Empty z => Parameter z x | x -> z where
Methods
pokeParam :: z -> x -> Ptr Double -> IO ()
peekParam :: z -> Ptr Double -> IO x
paramInfo :: x -> z -> [ParamInfo] -> [ParamInfo]
numParams :: x -> z -> Int
show/hide Instances
Parameter () Bool
Parameter () Char
Parameter () ()
(Parameter za a, Parameter zb b) => Parameter (za, zb) (a, b)
(Parameter za a, Parameter zb b, Parameter zc c) => Parameter (za, zb, zc) (a, b, c)
Parameter zb b => Parameter zb (Maybe b)
(Parameter za a, Parameter zb b) => Parameter (za, zb) (Either a b)
Parameter (Limit Double) Double
Parameter (Limit Float) Float
Parameter (Limit Int) Int
Produced by Haddock version 0.8