scipy.LowLevelCallable.from_cython

classmethod LowLevelCallable.from_cython(module, name, user_data=None, signature=None)[source]

Create a low-level callback function from an exported Cython function.

Parameters
modulemodule

Cython module where the exported function resides

namestr

Name of the exported function

user_data{PyCapsule, ctypes void pointer, cffi void pointer}, optional

User data to pass on to the callback function.

signaturestr, optional

Signature of the function. If omitted, determined from function.