DeepDarkFantasy-0.2017.4.9: A DSL for creating neural network.
DDF.Size
newtype Size h x Source #
Constructors
Fields
Instances
Methods
z :: Size (a, h) a Source #
s :: Size h b -> Size (a, h) b Source #
abs :: Size (a, h) b -> Size h (a -> b) Source #
app :: Size h (a -> b) -> Size h a -> Size h b Source #
hoas :: (Size (a, h) a -> Size (a, h) b) -> Size h (a -> b) Source #
com :: Size h ((b -> c) -> (a -> b) -> a -> c) Source #
flip :: Size h ((a -> b -> c) -> b -> a -> c) Source #
id :: Size h (a -> a) Source #
const :: Size h (a -> b -> a) Source #
scomb :: Size h ((a -> b -> c) -> (a -> b) -> a -> c) Source #
dup :: Size h ((a -> a -> b) -> a -> b) Source #
let_ :: Size h (a -> (a -> b) -> b) Source #
double :: Double -> Size h Double Source #
doubleZero :: Size h Double Source #
doubleOne :: Size h Double Source #
doublePlus :: Size h (Double -> Double -> Double) Source #
doubleMinus :: Size h (Double -> Double -> Double) Source #
doubleMult :: Size h (Double -> Double -> Double) Source #
doubleDivide :: Size h (Double -> Double -> Double) Source #
doubleExp :: Size h (Double -> Double) Source #
float :: Float -> Size h Float Source #
floatZero :: Size h Float Source #
floatOne :: Size h Float Source #
floatPlus :: Size h (Float -> Float -> Float) Source #
floatMinus :: Size h (Float -> Float -> Float) Source #
floatMult :: Size h (Float -> Float -> Float) Source #
floatDivide :: Size h (Float -> Float -> Float) Source #
floatExp :: Size h (Float -> Float) Source #
nothing :: Size h (Maybe a) Source #
just :: Size h (a -> Maybe a) Source #
optionMatch :: Size h (b -> (a -> b) -> Maybe a -> b) Source #
mkProd :: Size h (a -> b -> (a, b)) Source #
zro :: Size h ((a, b) -> a) Source #
fst :: Size h ((a, b) -> b) Source #
swap :: Size h ((x, y) -> (y, x)) Source #
curry :: Size h (((a, b) -> c) -> a -> b -> c) Source #
uncurry :: Size h ((a -> b -> c) -> (a, b) -> c) Source #
dual :: Size h ((x, y) -> Dual x y) Source #
runDual :: Size h (Dual x y -> (x, y)) Source #
mkDual :: Size h (x -> y -> Dual x y) Source #
dualOrig :: Size h (Dual x y -> x) Source #
dualDiff :: Size h (Dual x y -> y) Source #
empty :: Size h (Map k a) Source #
singleton :: Size h (k -> a -> Map k a) Source #
lookup :: Ord k => Size h (k -> Map k a -> Maybe a) Source #
alter :: Ord k => Size h ((Maybe a -> Maybe a) -> k -> Map k a -> Map k a) Source #
mapMap :: Size h ((a -> b) -> Map k a -> Map k b) Source #
char :: Char -> Size h Char Source #
bool :: Bool -> Size h Bool Source #
ite :: Size h (a -> a -> Bool -> a) Source #
fix :: Size h ((a -> a) -> a) Source #
left :: Size h (a -> Either a b) Source #
right :: Size h (b -> Either a b) Source #
sumMatch :: Size h ((a -> c) -> (b -> c) -> Either a b -> c) Source #
unit :: Size h () Source #
exfalso :: Size h (Void -> a) Source #
ioRet :: Size h (a -> IO a) Source #
ioBind :: Size h (IO a -> (a -> IO b) -> IO b) Source #
ioMap :: Size h ((a -> b) -> IO a -> IO b) Source #
nil :: Size h [a] Source #
cons :: Size h (a -> [a] -> [a]) Source #
listMatch :: Size h (b -> (a -> [a] -> b) -> [a] -> b) Source #
listAppend :: Size h ([a] -> [a] -> [a]) Source #
writer :: Size h ((a, w) -> Writer w a) Source #
runWriter :: Size h (Writer w a -> (a, w)) Source #
float2Double :: Size h (Float -> Double) Source #
double2Float :: Size h (Double -> Float) Source #
undefined :: Size h a Source #
state :: Size h ((x -> (y, x)) -> State x y) Source #
runState :: Size h (State x y -> x -> (y, x)) Source #
putStrLn :: Size h (String -> IO ()) Source #
one :: Size h x Source #