Elektrine lite

← Feed

@kyrsjo@snabelen.no

Post #3146408

2024-04-23 14:13 UTC

I'm working on a Python wrapper of a C++ library, using SWIG. It works, but the result isn't exactly "pythonic", especially since the library uses some fairly low level components things like specifying which variable to use for what with offsets into structs. So I'm monkey-patching ALL THE THINGS. However, I wonder: Is there a way to make numpy.frompyfunc deal with "self"? I want to make my methods accept numpy input and not write explicit loops in my wrapper.

Replies (0)

No replies.