ad-0.40: Automatic Differentiation

PortabilityGHC only
Stabilityexperimental
Maintainerekmett@gmail.com

Numeric.AD.Internal.Forward

Description

Unsafe and often partial combinators intended for internal usage.

Handle with care.

Documentation

bundle :: a -> a -> AD Forward aSource

unbundle :: AD Forward a -> (a, a)Source

apply :: Num a => (AD Forward a -> b) -> a -> bSource

bind :: (Traversable f, Num a) => (f (AD Forward a) -> b) -> f a -> f bSource

bind' :: (Traversable f, Num a) => (f (AD Forward a) -> b) -> f a -> (b, f b)Source

bindWith :: (Traversable f, Num a) => (a -> b -> c) -> (f (AD Forward a) -> b) -> f a -> f cSource

bindWith' :: (Traversable f, Num a) => (a -> b -> c) -> (f (AD Forward a) -> b) -> f a -> (b, f c)Source

transposeWith :: (Functor f, Foldable f, Traversable g) => (b -> f a -> c) -> f (g a) -> g b -> g cSource