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

Feldspar.Core.Functions

Synopsis

Documentation

class Type a => Eq a whereSource

Redefinition of the standard Eq class for Feldspar

Methods

(==) :: Data a -> Data a -> Data BoolSource

(/=) :: Data a -> Data a -> Data BoolSource

Instances

Eq Bool 
Eq Float 
Eq Int8 
Eq Int16 
Eq Int32 
Eq Word8 
Eq Word16 
Eq Word32 
Eq () 
Eq DefaultInt 
Eq DefaultWord 
Eq a => Eq [a] 
(Eq a, RealFloat a) => Eq (Complex a) 
(Eq a, Eq b) => Eq (a, b) 
(Eq a, Eq b, Eq c) => Eq (a, b, c) 
(Eq a, Eq b, Eq c, Eq d) => Eq (a, b, c, d) 

class (Eq a, Ord a) => Ord a whereSource

Redefinition of the standard Ord class for Feldspar

Methods

(<) :: Data a -> Data a -> Data BoolSource

(>) :: Data a -> Data a -> Data BoolSource

(<=) :: Data a -> Data a -> Data BoolSource

(>=) :: Data a -> Data a -> Data BoolSource

min :: Data a -> Data a -> Data aSource

max :: Data a -> Data a -> Data aSource

class (Type a, Num a, FullProp (Size a)) => Numeric a Source

Numeric types. The relation to the standard Num class is

instance Numeric a => Num (Data a)

class (Bits a, Type a, FullProp (Size a)) => Bits a whereSource

Redefinition of the standard Bits class for Feldspar

Methods

(.&.) :: Data a -> Data a -> Data aSource

(.|.) :: Data a -> Data a -> Data aSource

xor :: Data a -> Data a -> Data aSource

complement :: Data a -> Data aSource

bit :: Data Index -> Data aSource

setBit :: Data a -> Data Index -> Data aSource

clearBit :: Data a -> Data Index -> Data aSource

complementBit :: Data a -> Data Index -> Data aSource

testBit :: Data a -> Data Index -> Data BoolSource

shiftLU :: Data a -> Data Index -> Data aSource

shiftRU :: Data a -> Data Index -> Data aSource

shiftL :: Data a -> Data DefaultInt -> Data aSource

shiftR :: Data a -> Data DefaultInt -> Data aSource

rotateLU :: Data a -> Data Index -> Data aSource

rotateRU :: Data a -> Data Index -> Data aSource

rotateL :: Data a -> Data DefaultInt -> Data aSource

rotateR :: Data a -> Data DefaultInt -> Data aSource

reverseBits :: Data a -> Data aSource

bitScan :: Data a -> Data IndexSource

Returns the number of leading zeroes for unsigned types. For signed types it returns the number of unnecessary sign bits

bitCount :: Data a -> Data IndexSource

bitSize :: Data a -> Data IndexSource

isSigned :: Data a -> Data BoolSource

(⊕) :: Bits a => Data a -> Data a -> Data aSource

(<<) :: Bits a => Data a -> Data Index -> Data aSource

(>>) :: Bits a => Data a -> Data Index -> Data aSource

class (Numeric a, BoundedInt a, Bits a, Ord a) => Integral a whereSource

Redefinition of the standard Integral class for Feldspar

Methods

quot :: Data a -> Data a -> Data aSource

rem :: Data a -> Data a -> Data aSource

div :: Data a -> Data a -> Data aSource

mod :: Data a -> Data a -> Data aSource

(^) :: Data a -> Data a -> Data aSource

class (Fractional a, Numeric a) => Fractional' a Source

Fractional types. The relation to the standard Fractional class is

instance Frational' a => Fractional (Data a)

arrayLen :: Type a => Data Length -> [a] -> Data [a]Source

Constructs an array of the given length and initialization.

getIx :: Type a => Data [a] -> Data Index -> Data aSource

Look up an index in an array (see also !)

setIxSource

Arguments

:: Type a 
=> Data [a]

Source array

-> Data Index

Index to replace

-> Data a

New value

-> Data [a] 

Array update

getLength :: Type a => Data [a] -> Data LengthSource

Array length

class RandomAccess a whereSource

Associated Types

type Element a Source

The type of elements in a random access structure

Methods

(!) :: a -> Data Index -> Element aSource

Index lookup in a random access structure

Instances