Paraiso-0.3.1.5: a code generator for partial differential equations solvers.

Safe HaskellNone
LanguageHaskell2010

Language.Paraiso.Optimization.Graph

Description

Basic definitions for optimization

Synopsis

Documentation

type Optimization = forall v g. Graph v g Annotation -> Graph v g Annotation Source

the most frequent type of optimization is which

type OptimizationEx = forall v g a. OM v g a -> OM v g a Source

class (Vector v, Num g, Ord g, C g, Show g, Typeable g, C (v g), Ord (v g), Show (v g)) => Ready v g Source

(Ready v g) indicates that the pair (v, g) has all the instances for the full optimizations to be serviced.

Instances

(Vector v, Num g, Ord g, C g, Show g, Typeable * g, C (v g), Ord (v g), Show (v g)) => Ready v g Source 

gmap :: (Graph v g a -> Graph v g a) -> OM v g a -> OM v g a Source

map the graph optimization to each dataflow graph of the kernel