FunAsObject

Contents

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 (optional, BrainPyObject, sequence of BrainPyObject, dict) – The nodes in the defined function f.

  • dyn_vars (optional, Variable, sequence of Variable, dict) – The dynamically changed variables.

  • name (optional, str) – The function name.