Copyright | (c) Edward Kmett 2010-2021 |
---|---|
License | BSD3 |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | GHC only |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Dense f a
- auto :: Mode t => Scalar t -> t
- grad :: (Traversable f, Num a) => (f (Dense f a) -> Dense f a) -> f a -> f a
- grad' :: (Traversable f, Num a) => (f (Dense f a) -> Dense f a) -> f a -> (a, f a)
- gradWith :: (Traversable f, Num a) => (a -> a -> b) -> (f (Dense f a) -> Dense f a) -> f a -> f b
- gradWith' :: (Traversable f, Num a) => (a -> a -> b) -> (f (Dense f a) -> Dense f a) -> f a -> (a, f b)
- jacobian :: (Traversable f, Functor g, Num a) => (f (Dense f a) -> g (Dense f a)) -> f a -> g (f a)
- jacobian' :: (Traversable f, Functor g, Num a) => (f (Dense f a) -> g (Dense f a)) -> f a -> g (a, f a)
- jacobianWith :: (Traversable f, Functor g, Num a) => (a -> a -> b) -> (f (Dense f a) -> g (Dense f a)) -> f a -> g (f b)
- jacobianWith' :: (Traversable f, Functor g, Num a) => (a -> a -> b) -> (f (Dense f a) -> g (Dense f a)) -> f a -> g (a, f b)
Documentation
Instances
Sparse Gradients
gradWith :: (Traversable f, Num a) => (a -> a -> b) -> (f (Dense f a) -> Dense f a) -> f a -> f b Source #
gradWith' :: (Traversable f, Num a) => (a -> a -> b) -> (f (Dense f a) -> Dense f a) -> f a -> (a, f b) Source #
Sparse Jacobians (synonyms)
jacobian :: (Traversable f, Functor g, Num a) => (f (Dense f a) -> g (Dense f a)) -> f a -> g (f a) Source #
jacobian' :: (Traversable f, Functor g, Num a) => (f (Dense f a) -> g (Dense f a)) -> f a -> g (a, f a) Source #
jacobianWith :: (Traversable f, Functor g, Num a) => (a -> a -> b) -> (f (Dense f a) -> g (Dense f a)) -> f a -> g (f b) Source #
jacobianWith' :: (Traversable f, Functor g, Num a) => (a -> a -> b) -> (f (Dense f a) -> g (Dense f a)) -> f a -> g (a, f b) Source #