after having no success with my question on How to use float ** in Python with Swig?, I started thinking that swig might not be the weapon of choice. I need bindings for some c functions. One of these functions takes a float**. What would you recomend? Ctypes?
Interface file:
extern int read_data(const char *file,int *n_,int *m_,float **data_,int **classes_);
I’ve used
ctypesfor several projects now and have been quite happy with the results. I don’t think I’ve personally needed a pointer-to-pointer wrapper yet but, in theory, you should be able to do the following: