feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone
LanguageHaskell2010

Feldspar.Core.Constructs

Contents

Synopsis

Domain

Front end

newtype Data a Source

Constructors

Data 

Fields

unData :: ASTF FeldDomain a
 

Instances

Type a => Eq (Data a) 
Fraction a => Fractional (Data a) 
Numeric a => Num (Data a) 
Type a => Show (Data a) 
Testable (Data Bool) 
(Type a, Arbitrary a) => Arbitrary (Data a) 
Type a => Syntactic (Data a) 
Type a => Sized (Data [a]) 
Type a => Indexed (Data [a]) 
Fixable (Data Float) 
Type a => ElemWise (Data a) 
(Type a, Type b) => CollMap (Data [a]) (Data [b]) 
Numeric a => Mul (Data a) (Matrix a) 
Numeric a => Mul (Data a) (Vector1 a) 
Numeric a => Mul (Data a) (Data a) 
Numeric a => Mul (Vector1 a) (Matrix a) 
Numeric a => Mul (Vector1 a) (Vector1 a) 
Numeric a => Mul (Vector1 a) (Data a) 
Numeric a => Mul (Matrix a) (Matrix a) 
Numeric a => Mul (Matrix a) (Vector1 a) 
Numeric a => Mul (Matrix a) (Data a) 
Slice sl => Slice ((:.) sl (Data Length)) 
Shape sh => Shape ((:.) sh (Data Length)) 
Typeable (* -> *) Data 
type Internal (Data a) = a 
type Domain (Data a) = FeldDomain 
type CollSize (Data [a]) = Data Length 
type CollIndex (Data [a]) = Data Index 
type Elem (Data [a]) = Data a 
type Scalar (Data a) = Data a 
type Prod (Data a) (Matrix a) = Matrix a 
type Prod (Data a) (Vector1 a) = Vector1 a 
type Prod (Data a) (Data a) = Data a 
type Prod (Vector1 a) (Matrix a) = Vector1 a 
type Prod (Vector1 a) (Vector1 a) = Data a 
type Prod (Vector1 a) (Data a) = Vector1 a 
type Prod (Matrix a) (Matrix a) = Matrix a 
type Prod (Matrix a) (Vector1 a) = Vector1 a 
type Prod (Matrix a) (Data a) = Matrix a 
type SliceShape ((:.) sl (Data Length)) = SliceShape sl 
type FullShape ((:.) sl (Data Length)) = (:.) (FullShape sl) (Data Length) 

class (SyntacticFeld a, Type (Internal a)) => Syntax a Source

Specialization of the Syntactic class for the Feldspar domain

Instances

sugarSymF :: (ApplySym sig b FeldDomain, SyntacticN c b, InjectC (feature :|| Type) (HODomain FeldSymbols Typeable Type) (DenResult sig), Type (DenResult sig)) => feature sig -> c Source