scipy.LowLevelCallable.

from_cython#

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

從已匯出的 Cython 函數建立低階回呼函數。

參數:
modulemodule

匯出函數所在的 Cython 模組

namestr

匯出函數的名稱

user_data{PyCapsule, ctypes void pointer, cffi void pointer}, 選用

要傳遞給回呼函數的使用者資料。

signaturestr, 選用

函數的簽名。如果省略,則從函數決定。