Copyright | (c) Edward Kmett 2010-2021 |
---|---|
License | BSD3 |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | GHC only |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- newtype TowerDouble = Tower {}
- data List
- zeroPad :: Num a => [a] -> [a]
- zeroPadF :: (Functor f, Num a) => [f a] -> [f a]
- transposePadF :: (Foldable f, Functor f) => Double -> f List -> [f Double]
- d :: Num a => [a] -> a
- dl :: List -> Double
- d' :: Num a => [a] -> (a, a)
- dl' :: List -> (Double, Double)
- withD :: (Double, Double) -> TowerDouble
- tangents :: TowerDouble -> TowerDouble
- bundle :: Double -> TowerDouble -> TowerDouble
- apply :: (TowerDouble -> b) -> Double -> b
- getADTower :: TowerDouble -> [Double]
- tower :: [Double] -> TowerDouble
Documentation
newtype TowerDouble Source #
Tower
is an AD Mode
that calculates a tangent tower by forward AD, and provides fast diffsUU
, diffsUF
Instances
Instances
Data List Source # | |
Defined in Numeric.AD.Internal.Tower.Double gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> List -> c List # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c List # dataTypeOf :: List -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c List) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c List) # gmapT :: (forall b. Data b => b -> b) -> List -> List # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> List -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> List -> r # gmapQ :: (forall d. Data d => d -> u) -> List -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> List -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> List -> m List # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List # | |
Monoid List Source # | |
Semigroup List Source # | |
IsList List Source # | |
Read List Source # | |
Show List Source # | |
Eq List Source # | |
Ord List Source # | |
type Item List Source # | |
Defined in Numeric.AD.Internal.Tower.Double |
tangents :: TowerDouble -> TowerDouble Source #
bundle :: Double -> TowerDouble -> TowerDouble Source #
apply :: (TowerDouble -> b) -> Double -> b Source #
getADTower :: TowerDouble -> [Double] Source #
tower :: [Double] -> TowerDouble Source #