Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Automatic differentiation
Documentation
linearN :: (Representable f, Eq (Rep f), Distributive g, Num s) => (f s -> g s) -> (f :-* g) s Source #
type RepresentableV s a = (HasV s a, Representable (V s a)) Source #
type RepresentableVE s a = (RepresentableV s a, Eq (Rep (V s a))) Source #
type HasLinR s a b = (RepresentableVE s a, RepresentableV s b, Num s) Source #
linearNR :: (HasV s a, RepresentableVE s a, HasV s b, Distributive (V s b), Num s) => (a -> b) -> L s a b Source #
andGradFLR :: forall s a. (IsScalar s, RepresentableVE s a, Num s) => (a -> s) -> a -> s :* a Source #