GSLStateUpdater class¶
(Shortest import: from brian2.stateupdaters.GSL import GSLStateUpdater)
-
class
brian2.stateupdaters.GSL.GSLStateUpdater(integrator)[source]¶ Bases:
brian2.stateupdaters.base.StateUpdateMethodA statupdater that rewrites the differential equations so that the GSL generator knows how to write the code in the target language.
New in version 2.1.
Methods
__call__(equations[, variables, method_options])Translate equations to abstract_code.
Details
-
__call__(equations, variables=None, method_options=None)[source]¶ Translate equations to abstract_code.
- Parameters
equations :
Equationsobject containing the equations that describe the ODE systemTransferClass(self)
variables : dict
dictionary containing str,
Variablepairs- Returns
method : callable
Method that needs to be called with
StateUpdaterto add CodeObject class and some other variables so these can be sent to theCodeGenerator
-