ad-4.0.0.1: Automatic Differentiation

PortabilityGHC only
Stabilityexperimental
Maintainerekmett@gmail.com
Safe HaskellNone

Numeric.AD.Mode.Directed

Contents

Description

Allows the choice of AD Mode to be specified at the term level for benchmarking or more complicated usage patterns.

Synopsis

Gradients

grad :: (Traversable f, Num a) => Direction -> (forall t. Mode t => f t -> t) -> f a -> f aSource

grad' :: (Traversable f, Num a) => Direction -> (forall t. Mode t => f t -> t) -> f a -> (a, f a)Source

Jacobians

jacobian :: (Traversable f, Traversable g, Num a) => Direction -> (forall t. Mode t => f t -> g t) -> f a -> g (f a)Source

jacobian' :: (Traversable f, Traversable g, Num a) => Direction -> (forall t. Mode t => f t -> g t) -> f a -> g (a, f a)Source

Derivatives

diff :: Num a => Direction -> (forall t. Mode t => t -> t) -> a -> aSource

diff' :: Num a => Direction -> (forall t. Mode t => t -> t) -> a -> (a, a)Source

Exposed Types