stateupdaters package

Module for transforming model equations into “abstract code” that can be then be further translated into executable code by the codegen module.

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

StateUpdateMethod

exact module

Exact integration for linear equations.

Exported members: linear, independent

Classes

IndependentStateUpdater A state update for equations that do not depend on other state variables, i.e.
LinearStateUpdater A state updater for linear equations.

Functions

get_linear_system(eqs) Convert equations into a linear system using sympy.

Objects

independent A state update for equations that do not depend on other state variables, i.e.
linear A state updater for linear equations.

explicit module

Numerical integration functions.

Exported members: milstein, euler, rk2, rk4, ExplicitStateUpdater

Classes

ExplicitStateUpdater(description[, stochastic]) An object that can be used for defining state updaters via a simple description (see below).

Functions

split_expression(expr) Split an expression into a part containing the function f and another one containing the function g.

Objects

euler An object that can be used for defining state updaters via a simple description (see below).
milstein An object that can be used for defining state updaters via a simple description (see below).
rk2 An object that can be used for defining state updaters via a simple description (see below).
rk4 An object that can be used for defining state updaters via a simple description (see below).

exponential_euler module

Exported members: exponential_euler

Classes

ExponentialEulerStateUpdater A state updater for conditionally linear equations, i.e.

Functions

get_conditionally_linear_system(eqs) Convert equations into a linear system using sympy.

Objects

exponential_euler A state updater for conditionally linear equations, i.e.