We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@cfunc(intc(CPointer(float64), intp, CPointer(float64), voidptr)) def function(values_ptr, len_values, result, data): ... weights = carray(data, (1,), double)[0] ... weights = [0.6, 0.8, 0.4] seq = ctypes.c_double * len(weights) arr = seq(*weights) ptr = ctypes.cast(ctypes.pointer(arr), ctypes.c_void_p) ndi.generic_filter(image, LowLevelCallable(function.ctypes, ptr), footprint=footprint)
Source: scipy doc
The text was updated successfully, but these errors were encountered:
🙏
Sorry, something went wrong.
Link to longer discussion: https://ilovesymposia.com/2017/03/12/scipys-new-lowlevelcallable-is-a-game-changer/#comment-6282883608
No branches or pull requests
Source:
scipy doc
The text was updated successfully, but these errors were encountered: