concat-examples-0.3.0.0: Some examples of compiling to categories
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConCat.RAD

Description

Reverse mode AD

Synopsis

Documentation

type RAD = GD (Dual (-+>)) Source #

andDerR :: forall a b. (a -> b) -> a -> b :* (b -> a) Source #

Add a dual/reverse derivative

derR :: (a -> b) -> a -> b -> a Source #

Dual/reverse derivative

andGradR :: Num s => (a -> s) -> a -> s :* a Source #

gradR :: Num s => (a -> s) -> a -> a Source #

andDerRL :: forall s a b. Ok2 (L s) a b => (a -> b) -> a -> b :* L s b a Source #

derRL :: forall s a b. Ok2 (L s) a b => (a -> b) -> a -> L s b a Source #

andGrad2R :: Num s => (a -> s :* s) -> a -> (s :* s) :* (a :* a) Source #