Stability | experimental |
---|---|

Maintainer | David Sorokin <david.sorokin@gmail.com> |

Safe Haskell | Safe-Inferred |

Tested with: GHC 7.6.3

This module defines the unboxed memo functions. The memoization creates such `Dynamics`

computations, which values are cached in the integration time points. Then
these values are interpolated in all other time points.

- memoDynamics :: Unboxed e => Dynamics e -> Simulation (Dynamics e)
- memo0Dynamics :: Unboxed e => Dynamics e -> Simulation (Dynamics e)

# Documentation

memoDynamics :: Unboxed e => Dynamics e -> Simulation (Dynamics e)Source

Memoize and order the computation in the integration time points using the interpolation that knows of the Runge-Kutta method.

memo0Dynamics :: Unboxed e => Dynamics e -> Simulation (Dynamics e)Source

Memoize and order the computation in the integration time points using
the `discreteDynamics`

interpolation. It consumes less memory than the `memoDynamics`

function but it is not aware of the Runge-Kutta method. There is a subtle
difference when we request for values in the intermediate time points
that are used by this method to integrate. In general case you should
prefer the `memo0Dynamics`

function above `memoDynamics`

.