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 (
Callable) – The python function.nodes (
Union[Callable,BrainPyObject,Sequence[BrainPyObject],Dict[str,BrainPyObject]]) – The children objects used in this Python function.dyn_vars (
Union[Variable,Sequence[Variable],Dict[str,Variable]]) – The Variable instance used in the Python function.name (
str) – The name of the createdBrainPyObject.
- Returns:
func – The instance of
BrainPyObject.- Return type: