DeepDarkFantasy-0.2017.8.10: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.Eval

Documentation

comb :: x -> Eval h x Source #

newtype Eval h x Source #

Constructors

Eval 

Fields

Instances

DBI Eval Source # 

Methods

z :: Eval (a, h) a Source #

s :: Eval h b -> Eval (a, h) b Source #

abs :: Eval (a, h) b -> Eval h (a -> b) Source #

app :: Eval h (a -> b) -> Eval h a -> Eval h b Source #

hoas :: (Eval (a, h) a -> Eval (a, h) b) -> Eval h (a -> b) Source #

com :: Eval h ((b -> c) -> (a -> b) -> a -> c) Source #

flip :: Eval h ((a -> b -> c) -> b -> a -> c) Source #

id :: Eval h (a -> a) Source #

const :: Eval h (a -> b -> a) Source #

scomb :: Eval h ((a -> b -> c) -> (a -> b) -> a -> c) Source #

dup :: Eval h ((a -> a -> b) -> a -> b) Source #

let_ :: Eval h (a -> (a -> b) -> b) Source #

Fix Eval Source # 

Methods

fix :: Eval h (f (Fix f) -> Fix f) Source #

runFix :: Eval h (Fix f -> f (Fix f)) Source #

Float Eval Source # 
FreeVector Eval Source # 

Methods

freeVector :: Eval h ((b -> d) -> FreeVector b d) Source #

runFreeVector :: Eval h (FreeVector b d -> b -> d) Source #

Option Eval Source # 

Methods

nothing :: Eval h (Maybe a) Source #

just :: Eval h (a -> Maybe a) Source #

optionMatch :: Eval h (b -> (a -> b) -> Maybe a -> b) Source #

Prod Eval Source # 

Methods

mkProd :: Eval h (a -> b -> (a, b)) Source #

zro :: Eval h ((a, b) -> a) Source #

fst :: Eval h ((a, b) -> b) Source #

swap :: Eval h ((x, y) -> (y, x)) Source #

curry :: Eval h (((a, b) -> c) -> a -> b -> c) Source #

uncurry :: Eval h ((a -> b -> c) -> (a, b) -> c) Source #

Dual Eval Source # 

Methods

dual :: Eval h ((x, y) -> Dual x y) Source #

runDual :: Eval h (Dual x y -> (x, y)) Source #

mkDual :: Eval h (x -> y -> Dual x y) Source #

dualOrig :: Eval h (Dual x y -> x) Source #

dualDiff :: Eval h (Dual x y -> y) Source #

Sum Eval Source # 

Methods

left :: Eval h (a -> Either a b) Source #

right :: Eval h (b -> Either a b) Source #

sumMatch :: Eval h ((a -> c) -> (b -> c) -> Either a b -> c) Source #

Unit Eval Source # 

Methods

unit :: Eval h () Source #

Y Eval Source # 

Methods

y :: Eval h ((a -> a) -> a) Source #

undefined :: Eval h a Source #

List Eval Source # 

Methods

nil :: Eval h [a] Source #

cons :: Eval h (a -> [a] -> [a]) Source #

listMatch :: Eval h (b -> (a -> [a] -> b) -> [a] -> b) Source #

listAppend :: Eval h ([a] -> [a] -> [a]) Source #

Char Eval Source # 

Methods

char :: Char -> Eval h Char Source #

IO Eval Source # 

Methods

putStrLn :: Eval h (String -> IO ()) Source #

Bool Eval Source # 

Methods

bool :: Bool -> Eval h Bool Source #

ite :: Eval h (a -> a -> Bool -> a) Source #

Double Eval Source # 
Map Eval Source # 

Methods

empty :: Eval h (Map k a) Source #

singleton :: Eval h (k -> a -> Map k a) Source #

lookup :: Ord k => Eval h (Map k a -> k -> Maybe a) Source #

alter :: Ord k => Eval h ((Maybe a -> Maybe a) -> k -> Map k a -> Map k a) Source #

mapMap :: Eval h ((a -> b) -> Map k a -> Map k b) Source #

unionWith :: Ord k => Eval h ((a -> a -> a) -> Map k a -> Map k a -> Map k a) Source #

insert :: Ord k => Eval h (k -> a -> Map k a -> Map k a) Source #

DiffWrapper Eval Source # 
VectorTF Eval Source # 

Methods

zero :: Eval h (VectorTF t f) Source #

basis :: Eval h (t -> VectorTF t f) Source #

plus :: Eval h (f -> f -> VectorTF t f) Source #

mult :: Eval h (Double -> f -> VectorTF t f) Source #

vtfMatch :: Eval h (a -> (t -> a) -> (f -> f -> a) -> (Double -> f -> a) -> VectorTF t f -> a) Source #

Int Eval Source # 

Methods

int :: Int -> Eval h Int Source #

pred :: Eval h (Int -> Int) Source #

isZero :: Eval h (Int -> Bool) Source #

Bimap Eval Source # 

Methods

size :: Eval h (Bimap a b -> Int) Source #

lookupL :: (Ord a, Ord b) => Eval h (Bimap a b -> a -> Maybe b) Source #

lookupR :: (Ord a, Ord b) => Eval h (Bimap a b -> b -> Maybe a) Source #

empty :: Eval h (Bimap a b) Source #

singleton :: Eval h ((a, b) -> Bimap a b) Source #

toMapL :: Eval h (Bimap a b -> Map a b) Source #

toMapR :: Eval h (Bimap a b -> Map b a) Source #

insert :: (Ord a, Ord b) => Eval h ((a, b) -> Bimap a b -> Bimap a b) Source #

updateL :: (Ord a, Ord b) => Eval h ((b -> Maybe b) -> a -> Bimap a b -> Bimap a b) Source #

updateR :: (Ord a, Ord b) => Eval h ((a -> Maybe a) -> b -> Bimap a b -> Bimap a b) Source #

Lang Eval Source # 

Methods

exfalso :: Eval h (Void -> a) Source #

writer :: Eval h ((a, w) -> Writer w a) Source #

runWriter :: Eval h (Writer w a -> (a, w)) Source #

float2Double :: Eval h (Float -> Double) Source #

double2Float :: Eval h (Double -> Float) Source #

state :: Eval h ((x -> (y, x)) -> State x y) Source #

runState :: Eval h (State x y -> x -> (y, x)) Source #

iterate :: Eval h ((x -> x) -> x -> [x]) Source #

buildFreeVector :: Ord b => Eval h (FreeVectorBuilder b -> FreeVector b Double) Source #

toSVTFBuilder :: Ord b => Eval h (VectorTF b Int -> SVTFBuilder b) Source #

get :: Eval h (Maybe a -> a) Source #

getVar :: Eval h (State x x) Source #

update :: Eval h ((x -> x) -> State x ()) Source #

updateWengert :: Eval h (Int -> Double -> Map Int Double -> Map Int Double) Source #

vtfCata :: Eval h ((VectorTF a b -> b) -> Fix (VectorTF a) -> b) Source #

Monad Eval IO Source # 

Methods

bind :: Eval h (IO a -> (a -> IO b) -> IO b) Source #

join :: Eval h (IO (IO a) -> IO a) Source #

Applicative Eval IO Source # 

Methods

pure :: Eval h (x -> IO x) Source #

ap :: Eval h (IO (x -> y) -> IO x -> IO y) Source #

Functor Eval IO Source # 

Methods

map :: Eval h ((a -> b) -> IO a -> IO b) Source #