DeepDarkFantasy-0.2017.8.4: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.GDiff

Contents

Documentation

Orphan instances

DBI r => DBI (GDiff r) Source # 

Methods

z :: GDiff r (a, h) a Source #

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

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

app :: GDiff r h (a -> b) -> GDiff r h a -> GDiff r h b Source #

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

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

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

id :: GDiff r h (a -> a) Source #

const :: GDiff r h (a -> b -> a) Source #

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

dup :: GDiff r h ((a -> a -> b) -> a -> b) Source #

let_ :: GDiff r h (a -> (a -> b) -> b) Source #

DiffWrapper r => Fix (GDiff r) Source # 

Methods

fix :: GDiff r h (f (Fix f) -> Fix f) Source #

runFix :: GDiff r h (Fix f -> f (Fix f)) Source #

Lang r => Float (GDiff r) Source # 
FreeVector r => FreeVector (GDiff r) Source # 

Methods

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

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

Option r => Option (GDiff r) Source # 

Methods

nothing :: GDiff r h (Maybe a) Source #

just :: GDiff r h (a -> Maybe a) Source #

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

Prod r => Prod (GDiff r) Source # 

Methods

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

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

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

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

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

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

Dual r => Dual (GDiff r) Source # 

Methods

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

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

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

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

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

Sum r => Sum (GDiff r) Source # 

Methods

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

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

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

Unit r => Unit (GDiff r) Source # 

Methods

unit :: GDiff r h () Source #

Y r => Y (GDiff r) Source # 

Methods

y :: GDiff r h ((a -> a) -> a) Source #

undefined :: GDiff r h a Source #

List r => List (GDiff r) Source # 

Methods

nil :: GDiff r h [a] Source #

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

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

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

Char r => Char (GDiff r) Source # 

Methods

char :: Char -> GDiff r h Char Source #

IO r => IO (GDiff r) Source # 

Methods

putStrLn :: GDiff r h (String -> IO ()) Source #

Bool r => Bool (GDiff r) Source # 

Methods

bool :: Bool -> GDiff r h Bool Source #

ite :: GDiff r h (a -> a -> Bool -> a) Source #

Lang r => Double (GDiff r) Source # 
Map r => Map (GDiff r) Source # 

Methods

empty :: GDiff r h (Map k a) Source #

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

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

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

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

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

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

DiffWrapper r => DiffWrapper (GDiff r) Source # 
Lang r => VectorTF (GDiff r) Source # 

Methods

zero :: GDiff r h (VectorTF t f) Source #

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

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

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

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

Int r => Int (GDiff r) Source # 

Methods

int :: Int -> GDiff r h Int Source #

pred :: GDiff r h (Int -> Int) Source #

isZero :: GDiff r h (Int -> Bool) Source #

Bimap r => Bimap (GDiff r) Source # 

Methods

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

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

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

empty :: GDiff r h (Bimap a b) Source #

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

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

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

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

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

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

Lang r => Lang (GDiff r) Source # 

Methods

exfalso :: GDiff r h (Void -> a) Source #

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

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

float2Double :: GDiff r h (Float -> Double) Source #

double2Float :: GDiff r h (Double -> Float) Source #

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

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

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

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

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

get :: GDiff r h (Maybe a -> a) Source #

getVar :: GDiff r h (State x x) Source #

update :: GDiff r h ((x -> x) -> State x ()) Source #

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

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

Monad r IO => Monad (GDiff r) IO Source # 

Methods

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

join :: GDiff r h (IO (IO a) -> IO a) Source #

Applicative r IO => Applicative (GDiff r) IO Source # 

Methods

pure :: GDiff r h (x -> IO x) Source #

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

Functor r IO => Functor (GDiff r) IO Source # 

Methods

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