ad-4.2.1.1: Automatic Differentiation

Copyright(c) Edward Kmett 2010-2014
LicenseBSD3
Maintainerekmett@gmail.com
Stabilityexperimental
PortabilityGHC only
Safe HaskellNone
LanguageHaskell2010

Numeric.AD.Rank1.Tower

Contents

Description

Higher order derivatives via a "dual number tower".

Synopsis

Documentation

data Tower a Source

Tower is an AD Mode that calculates a tangent tower by forward AD, and provides fast diffsUU, diffsUF

Instances

(Num a, Bounded a) => Bounded (Tower a) 
(Num a, Enum a) => Enum (Tower a) 
(Num a, Eq a) => Eq (Tower a) 
Floating a => Floating (Tower a) 
Fractional a => Fractional (Tower a) 
Data a => Data (Tower a) 
Num a => Num (Tower a) 
(Num a, Ord a) => Ord (Tower a) 
Real a => Real (Tower a) 
RealFloat a => RealFloat (Tower a) 
RealFrac a => RealFrac (Tower a) 
Show a => Show (Tower a) 
Erf a => Erf (Tower a) 
InvErf a => InvErf (Tower a) 
Num a => Mode (Tower a) 
Num a => Jacobian (Tower a) 
Typeable (* -> *) Tower 
type Scalar (Tower a) = a 
type D (Tower a) = Tower a 

auto :: Mode t => Scalar t -> t Source

Embed a constant

Taylor Series

taylor :: Fractional a => (Tower a -> Tower a) -> a -> a -> [a] Source

taylor0 :: Fractional a => (Tower a -> Tower a) -> a -> a -> [a] Source

Maclaurin Series

maclaurin :: Fractional a => (Tower a -> Tower a) -> a -> [a] Source

maclaurin0 :: Fractional a => (Tower a -> Tower a) -> a -> [a] Source

Derivatives

diff :: Num a => (Tower a -> Tower a) -> a -> a Source

diff' :: Num a => (Tower a -> Tower a) -> a -> (a, a) Source

diffs :: Num a => (Tower a -> Tower a) -> a -> [a] Source

diffs0 :: Num a => (Tower a -> Tower a) -> a -> [a] Source

diffsF :: (Functor f, Num a) => (Tower a -> f (Tower a)) -> a -> f [a] Source

diffs0F :: (Functor f, Num a) => (Tower a -> f (Tower a)) -> a -> f [a] Source

Directional Derivatives

du :: (Functor f, Num a) => (f (Tower a) -> Tower a) -> f (a, a) -> a Source

du' :: (Functor f, Num a) => (f (Tower a) -> Tower a) -> f (a, a) -> (a, a) Source

dus :: (Functor f, Num a) => (f (Tower a) -> Tower a) -> f [a] -> [a] Source

dus0 :: (Functor f, Num a) => (f (Tower a) -> Tower a) -> f [a] -> [a] Source

duF :: (Functor f, Functor g, Num a) => (f (Tower a) -> g (Tower a)) -> f (a, a) -> g a Source

duF' :: (Functor f, Functor g, Num a) => (f (Tower a) -> g (Tower a)) -> f (a, a) -> g (a, a) Source

dusF :: (Functor f, Functor g, Num a) => (f (Tower a) -> g (Tower a)) -> f [a] -> g [a] Source

dus0F :: (Functor f, Functor g, Num a) => (f (Tower a) -> g (Tower a)) -> f [a] -> g [a] Source