Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Linearity
- data Region where
- type RegionDecl = (Variable, RegionSum)
- type RegionEnv = [(Variable, RegionSum)]
- newtype RegionProd = Product {}
- newtype RegionSum = Sum {
- unSum :: [RegionProd]
- data Spatial = Spatial RegionSum
- type SpecDecl = ([Variable], Specification)
- type SpecDecls = [SpecDecl]
- data Specification = Specification (Multiplicity (Approximation Spatial)) IsStencil
- type IsStencil = Bool
- type Variable = String
- absoluteRep :: Int
- fromBool :: Bool -> Linearity
- groupKeyBy :: Eq b => [(a, b)] -> [([a], b)]
- hasDuplicates :: Eq a => [a] -> ([a], Bool)
- isEmpty :: Specification -> Bool
- isUnit :: RegionRig t => t -> Bool
- pprintSpecDecls :: SpecDecls -> String
- setLinearity :: Linearity -> Specification -> Specification
Datatypes and Aliases
type RegionDecl = (Variable, RegionSum) Source #
newtype RegionProd Source #
Sum | |
|
type SpecDecl = ([Variable], Specification) Source #
data Specification Source #
type IsStencil = Bool Source #
isStencil
is used to mark whether a specification is associated
| with a stencil computation, or a general array computation
Functions
absoluteRep :: Int Source #
groupKeyBy :: Eq b => [(a, b)] -> [([a], b)] Source #
hasDuplicates :: Eq a => [a] -> ([a], Bool) Source #
isEmpty :: Specification -> Bool Source #
pprintSpecDecls :: SpecDecls -> String Source #
setLinearity :: Linearity -> Specification -> Specification Source #