FunAsObject#
- class brainpy.math.FunAsObject(target, child_objs=None, dyn_vars=None, name=None)[source]#
Transform a Python function as a
BrainPyObject.- Parameters:
target (
Callable) – The function to wrap.child_objs (
Union[BrainPyObject,Sequence[BrainPyObject],Dict[dict,BrainPyObject]]) – The nodes in the defined functionf.dyn_vars (
Union[Variable,Sequence[Variable],Dict[dict,Variable]]) – The dynamically changed variables.name (
str) – The function name.