ad-4.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 s) 
Num a => Jacobian (Tower a s) 
Num a => Jacobian (Sparse a s) 
(Reifies * s Tape, Num a) => Jacobian (Reverse a s) 
Num a => Jacobian (Kahn a s) 
Num a => Jacobian (Forward a s) 
(Traversable f, Num a) => Jacobian (Dense f a s)