function

Contents

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:
Returns:

func – The instance of BrainPyObject.

Return type:

FunAsObject