ad-4.2.0.1: Automatic Differentiation

PortabilityGHC only
Stabilityexperimental
Maintainerekmett@gmail.com
Safe HaskellNone

Numeric.AD.Jacobian

Description

 

Synopsis

Documentation

class (Mode t, Mode (D t), Num (D t)) => Jacobian t whereSource

Jacobian is useful for defining new AD primitives in a fairly generic way.

Associated Types

type D t :: *Source

Methods

unary :: (Scalar t -> Scalar t) -> D t -> t -> tSource

lift1 :: (Scalar t -> Scalar t) -> (D t -> D t) -> t -> tSource

lift1_ :: (Scalar t -> Scalar t) -> (D t -> D t -> D t) -> t -> tSource

binary :: (Scalar t -> Scalar t -> Scalar t) -> D t -> D t -> t -> t -> tSource

lift2 :: (Scalar t -> Scalar t -> Scalar t) -> (D t -> D t -> (D t, D t)) -> t -> t -> tSource

lift2_ :: (Scalar t -> Scalar t -> Scalar t) -> (D t -> D t -> D t -> (D t, D t)) -> t -> t -> tSource

Instances

Jacobian ForwardDouble 
Num a => Jacobian (Tower a) 
Num a => Jacobian (Sparse a) 
Num a => Jacobian (Kahn a) 
Num a => Jacobian (Forward a) 
(Traversable f, Num a) => Jacobian (Dense f a) 
(Reifies * s Tape, Num a) => Jacobian (Reverse s a)