function#
- class brainpy.math.function(f=None, nodes=None, dyn_vars=None, name=None)[source]#
Transform a Python function into a
BrainPyObject
.Deprecated since version 2.3.0: Using
to_object()
instead.- Parameters:
f (function, callable) – The python function.
nodes (Callable, BrainPyObject, sequence of BrainPyObject, dict of BrainPyObject) – 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
BrainPyObject
.- Return type: