dvda-0.3.2: Efficient automatic differentiation and code generation

Safe HaskellSafe-Infered

Dvda.MultipleShooting.MSMonad

Synopsis

Documentation

type State s = StateT s Identity

A state monad parameterized by the type s of the state to carry.

The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.

addParam :: (Eq a, Hashable a) => String -> State (Step a) (Expr a)Source

addParams :: (Eq a, Hashable a) => [String] -> State (Step a) [Expr a]Source

addConstants :: (Eq a, Hashable a) => [String] -> State (Step a) [Expr a]Source

setLagrangeTerm :: Expr a -> (a, a) -> State (Step a) ()Source

setPeriodic :: (Eq a, Hashable a, Show a) => Expr a -> State (Step a) ()Source

setBound :: (Show a, Eq a, Hashable a) => Expr a -> (a, a) -> BCTime -> State (Step a) ()Source