DeepDarkFantasy-0.2017.8.9: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.UnHOAS

Documentation

newtype UnHOAS repr h x Source #

Constructors

UnHOAS 

Fields

Instances

DBI repr => DBI (UnHOAS repr) Source # 

Methods

z :: UnHOAS repr (a, h) a Source #

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

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

app :: UnHOAS repr h (a -> b) -> UnHOAS repr h a -> UnHOAS repr h b Source #

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

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

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

id :: UnHOAS repr h (a -> a) Source #

const :: UnHOAS repr h (a -> b -> a) Source #

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

dup :: UnHOAS repr h ((a -> a -> b) -> a -> b) Source #

let_ :: UnHOAS repr h (a -> (a -> b) -> b) Source #

Fix r => Fix (UnHOAS r) Source # 

Methods

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

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

Float r => Float (UnHOAS r) Source # 
FreeVector r => FreeVector (UnHOAS r) Source # 

Methods

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

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

Option r => Option (UnHOAS r) Source # 

Methods

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

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

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

Prod r => Prod (UnHOAS r) Source # 

Methods

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

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

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

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

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

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

Dual r => Dual (UnHOAS r) Source # 

Methods

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

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

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

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

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

Sum r => Sum (UnHOAS r) Source # 

Methods

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

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

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

Unit r => Unit (UnHOAS r) Source # 

Methods

unit :: UnHOAS r h () Source #

Y r => Y (UnHOAS r) Source # 

Methods

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

undefined :: UnHOAS r h a Source #

List r => List (UnHOAS r) Source # 

Methods

nil :: UnHOAS r h [a] Source #

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

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

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

Char r => Char (UnHOAS r) Source # 

Methods

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

IO r => IO (UnHOAS r) Source # 

Methods

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

Bool r => Bool (UnHOAS r) Source # 

Methods

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

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

Double r => Double (UnHOAS r) Source # 
Map r => Map (UnHOAS r) Source # 

Methods

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

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

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

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

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

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

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

DiffWrapper r => DiffWrapper (UnHOAS r) Source # 
VectorTF r => VectorTF (UnHOAS r) Source # 

Methods

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

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

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

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

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

Int r => Int (UnHOAS r) Source # 

Methods

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

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

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

Bimap r => Bimap (UnHOAS r) Source # 

Methods

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

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

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

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

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

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

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

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

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

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

Lang r => Lang (UnHOAS r) Source # 

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Monad r x => Monad (UnHOAS r) x Source # 

Methods

bind :: UnHOAS r h (x a -> (a -> x b) -> x b) Source #

join :: UnHOAS r h (x (x a) -> x a) Source #

Applicative r x => Applicative (UnHOAS r) x Source # 

Methods

pure :: UnHOAS r h (x -> x x) Source #

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

Functor r x => Functor (UnHOAS r) x Source # 

Methods

map :: UnHOAS r h ((a -> b) -> x a -> x b) Source #