brainpy.math.to_dynsys
brainpy.math.to_dynsys#
- brainpy.math.to_dynsys(f=None, child_objs=None, dyn_vars=None, name=None)[source]#
Transform a Python function to a
DynamicalSystem
.- Parameters
f (function, callable) – The python function.
child_objs (Callable, DynamicalSystem, sequence of DynamicalSystem, dict of DynamicalSystem) – The children objects used in this Python function.
dyn_vars (Variable, sequence of Variable, dict of Variable) – The Variable instance used in the Python function.
name (str) – The name of the created
BrainPyObject
.
- Returns
func – The instance of
DynamicalSystem
.- Return type
FunAsDynSys