DeepDarkFantasy-0.2017.8.8: A DSL for creating neural network.
DDF.Diff
Contents
Methods
diffOrd :: Proxy * (v, Double) -> Dict (Ord (DiffType v Double)) Source #
diffOrd :: Proxy * (v, Float) -> Dict (Ord (DiffType v Float)) Source #
diffOrd :: Proxy * (v, ()) -> Dict (Ord (DiffType v ())) Source #
diffOrd :: Proxy * (v, [a]) -> Dict (Ord (DiffType v [a])) Source #
z :: Diff r v (a, h) a Source #
s :: Diff r v h b -> Diff r v (a, h) b Source #
abs :: Diff r v (a, h) b -> Diff r v h (a -> b) Source #
app :: Diff r v h (a -> b) -> Diff r v h a -> Diff r v h b Source #
hoas :: (Diff r v (a, h) a -> Diff r v (a, h) b) -> Diff r v h (a -> b) Source #
com :: Diff r v h ((b -> c) -> (a -> b) -> a -> c) Source #
flip :: Diff r v h ((a -> b -> c) -> b -> a -> c) Source #
id :: Diff r v h (a -> a) Source #
const :: Diff r v h (a -> b -> a) Source #
scomb :: Diff r v h ((a -> b -> c) -> (a -> b) -> a -> c) Source #
dup :: Diff r v h ((a -> a -> b) -> a -> b) Source #
let_ :: Diff r v h (a -> (a -> b) -> b) Source #
fix :: Diff r v h (f (Fix f) -> Fix f) Source #
runFix :: Diff r v h (Fix f -> f (Fix f)) Source #
float :: Float -> Diff r v h Float Source #
floatZero :: Diff r v h Float Source #
floatOne :: Diff r v h Float Source #
floatPlus :: Diff r v h (Float -> Float -> Float) Source #
floatMinus :: Diff r v h (Float -> Float -> Float) Source #
floatMult :: Diff r v h (Float -> Float -> Float) Source #
floatDivide :: Diff r v h (Float -> Float -> Float) Source #
floatExp :: Diff r v h (Float -> Float) Source #
freeVector :: Diff r v h ((b -> d) -> FreeVector b d) Source #
runFreeVector :: Diff r v h (FreeVector b d -> b -> d) Source #
nothing :: Diff r v h (Maybe a) Source #
just :: Diff r v h (a -> Maybe a) Source #
optionMatch :: Diff r v h (b -> (a -> b) -> Maybe a -> b) Source #
mkProd :: Diff r v h (a -> b -> (a, b)) Source #
zro :: Diff r v h ((a, b) -> a) Source #
fst :: Diff r v h ((a, b) -> b) Source #
swap :: Diff r v h ((x, y) -> (y, x)) Source #
curry :: Diff r v h (((a, b) -> c) -> a -> b -> c) Source #
uncurry :: Diff r v h ((a -> b -> c) -> (a, b) -> c) Source #
dual :: Diff r v h ((x, y) -> Dual x y) Source #
runDual :: Diff r v h (Dual x y -> (x, y)) Source #
mkDual :: Diff r v h (x -> y -> Dual x y) Source #
dualOrig :: Diff r v h (Dual x y -> x) Source #
dualDiff :: Diff r v h (Dual x y -> y) Source #
left :: Diff r v h (a -> Either a b) Source #
right :: Diff r v h (b -> Either a b) Source #
sumMatch :: Diff r v h ((a -> c) -> (b -> c) -> Either a b -> c) Source #
unit :: Diff r v h () Source #
y :: Diff r v h ((a -> a) -> a) Source #
undefined :: Diff r v h a Source #
nil :: Diff r v h [a] Source #
cons :: Diff r v h (a -> [a] -> [a]) Source #
listMatch :: Diff r v h (b -> (a -> [a] -> b) -> [a] -> b) Source #
listAppend :: Diff r v h ([a] -> [a] -> [a]) Source #
char :: Char -> Diff r v h Char Source #
putStrLn :: Diff r v h (String -> IO ()) Source #
bool :: Bool -> Diff r v h Bool Source #
ite :: Diff r v h (a -> a -> Bool -> a) Source #
double :: Double -> Diff r v h Double Source #
doubleZero :: Diff r v h Double Source #
doubleOne :: Diff r v h Double Source #
doublePlus :: Diff r v h (Double -> Double -> Double) Source #
doubleMinus :: Diff r v h (Double -> Double -> Double) Source #
doubleMult :: Diff r v h (Double -> Double -> Double) Source #
doubleDivide :: Diff r v h (Double -> Double -> Double) Source #
doubleExp :: Diff r v h (Double -> Double) Source #
doubleEq :: Diff r v h (Double -> Double -> Bool) Source #
empty :: Diff r v h (Map k a) Source #
singleton :: Diff r v h (k -> a -> Map k a) Source #
lookup :: Ord k => Diff r v h (Map k a -> k -> Maybe a) Source #
alter :: Ord k => Diff r v h ((Maybe a -> Maybe a) -> k -> Map k a -> Map k a) Source #
mapMap :: Diff r v h ((a -> b) -> Map k a -> Map k b) Source #
unionWith :: Ord k => Diff r v h ((a -> a -> a) -> Map k a -> Map k a -> Map k a) Source #
insert :: Ord k => Diff r v h (k -> a -> Map k a -> Map k a) Source #
diffOrd :: Proxy * (v, Dual l r) -> Dict (Ord (DiffType v (Dual l r))) Source #
diffWrapper :: Diff r v h (FDiffType a x -> DiffWrapper a x) Source #
runDiffWrapper :: Diff r v h (DiffWrapper a x -> FDiffType a x) Source #
zero :: Diff r v h (VectorTF t f) Source #
basis :: Diff r v h (t -> VectorTF t f) Source #
plus :: Diff r v h (f -> f -> VectorTF t f) Source #
mult :: Diff r v h (Double -> f -> VectorTF t f) Source #
vtfMatch :: Diff r v h (a -> (t -> a) -> (f -> f -> a) -> (Double -> f -> a) -> VectorTF t f -> a) Source #
int :: Int -> Diff r v h Int Source #
pred :: Diff r v h (Int -> Int) Source #
isZero :: Diff r v h (Int -> Bool) Source #
size :: Diff r v h (Bimap a b -> Int) Source #
lookupL :: (Ord a, Ord b) => Diff r v h (Bimap a b -> a -> Maybe b) Source #
lookupR :: (Ord a, Ord b) => Diff r v h (Bimap a b -> b -> Maybe a) Source #
empty :: Diff r v h (Bimap a b) Source #
singleton :: Diff r v h ((a, b) -> Bimap a b) Source #
toMapL :: Diff r v h (Bimap a b -> Map a b) Source #
toMapR :: Diff r v h (Bimap a b -> Map b a) Source #
insert :: (Ord a, Ord b) => Diff r v h ((a, b) -> Bimap a b -> Bimap a b) Source #
updateL :: (Ord a, Ord b) => Diff r v h ((b -> Maybe b) -> a -> Bimap a b -> Bimap a b) Source #
updateR :: (Ord a, Ord b) => Diff r v h ((a -> Maybe a) -> b -> Bimap a b -> Bimap a b) Source #
exfalso :: Diff r v h (Void -> a) Source #
writer :: Diff r v h ((a, w) -> Writer w a) Source #
runWriter :: Diff r v h (Writer w a -> (a, w)) Source #
float2Double :: Diff r v h (Float -> Double) Source #
double2Float :: Diff r v h (Double -> Float) Source #
state :: Diff r v h ((x -> (y, x)) -> State x y) Source #
runState :: Diff r v h (State x y -> x -> (y, x)) Source #
iterate :: Diff r v h ((x -> x) -> x -> [x]) Source #
buildFreeVector :: Ord b => Diff r v h (FreeVectorBuilder b -> FreeVector b Double) Source #
toSVTFBuilder :: Ord b => Diff r v h (VectorTF b Int -> SVTFBuilder b) Source #
get :: Diff r v h (Maybe a -> a) Source #
getVar :: Diff r v h (State x x) Source #
update :: Diff r v h ((x -> x) -> State x ()) Source #
updateWengert :: Diff r v h (Int -> Double -> Map Int Double -> Map Int Double) Source #
vtfCata :: Diff r v h ((VectorTF a b -> b) -> Fix (VectorTF a) -> b) Source #
bind :: Diff r v h (IO a -> (a -> IO b) -> IO b) Source #
join :: Diff r v h (IO (IO a) -> IO a) Source #
pure :: Diff r v h (x -> IO x) Source #
ap :: Diff r v h (IO (x -> y) -> IO x -> IO y) Source #
map :: Diff r v h ((a -> b) -> IO a -> IO b) Source #