I decided to port some of my Python functions to C, mostly following this simple tutorial. Problem is that my C function returns a complex float, and there\'s no correspondi
Naively, perhaps split it into two arguments, Re(z), Im(z)
If that's not an option, perhaps pass the argument to the python function complex().
These are naive solutions; perhaps they don't work but if you haven't considered it and in lack of better responses, may be worth experimenting with.
Good luck!