stateupdaters package
Module for transforming model equations into “abstract code” that can be then be
further translated into executable code by the codegen
module.
Exported members:
StateUpdateMethod
, linear
, exact
, independent
, milstein
, heun
, euler
, rk2
, rk4
, ExplicitStateUpdater
, exponential_euler
, gsl_rk2
, gsl_rk4
, gsl_rkf45
, gsl_rkck
, gsl_rk8pd
GSL
module
Module containg the StateUpdateMethod for integration using the ODE solver provided in the GNU Scientific Library (GSL)
Exported members:
gsl_rk2
, gsl_rk4
, gsl_rkf45
, gsl_rkck
, gsl_rk8pd
Classes
|
Class that contains information (equation- or integrator-related) required for later code generation |
|
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
Objects
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
A statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language. |
base
module
This module defines the StateUpdateMethod
class that acts as a base class for
all stateupdaters and allows to register stateupdaters so that it is able to
return a suitable stateupdater object for a given set of equations. This is used
for example in NeuronGroup
when no state updater is given explicitly.
Exported members:
StateUpdateMethod
Classes
Functions
|
Helper function to check |
exact
module
Exact integration for linear equations.
Exported members:
linear
, exact
, independent
Classes
A state update for equations that do not depend on other state variables, i.e. 1-dimensional differential equations. |
A state updater for linear equations. |
Functions
|
Convert equations into a linear system using sympy. |
Objects
A state updater for linear equations. |
A state update for equations that do not depend on other state variables, i.e. 1-dimensional differential equations. |
A state updater for linear equations. |
explicit
module
Numerical integration functions.
Exported members:
milstein
, heun
, euler
, rk2
, rk4
, ExplicitStateUpdater
Classes
|
An object that can be used for defining state updaters via a simple description (see below). |
Functions
|
Checks whether we deal with diagonal noise, i.e. one independent noise variable per variable. |
|
Split an expression into a part containing the function |
Objects
Forward Euler state updater |
Stochastic Heun method (for multiplicative Stratonovic SDEs with non-diagonal diffusion matrix) |
Derivative-free Milstein method |
Second order Runge-Kutta method (midpoint method) |
Classical Runge-Kutta method (RK4) |
exponential_euler
module
Exported members:
exponential_euler
Classes
A state updater for conditionally linear equations, i.e. equations where each variable only depends linearly on itself (but possibly non-linearly on other variables). |
Functions
|
Convert equations into a linear system using sympy. |
Objects
A state updater for conditionally linear equations, i.e. equations where each variable only depends linearly on itself (but possibly non-linearly on other variables). |