I have a C function which takes, among other arguments, 3 arrays of differents types :
void create_signal(double ztab[], ..., int *pdata, ..., char ranging[], ...); and I want to use this function in a Python module using SWIG.
I have already figured out how to use C functions which take in an array with numpy.i typemaps :
%apply (double* INPLACE_ARRAY1, int DIM1) {(double xtab[], int length)} for instance,
or even 2 arrays of same type :
apply (double* INPLACE_ARRAY1, int DIM1) {(double xtab[], int length_x), (double ytab[], int length_y)}
but I can't figure out if it is possible to do so if the arrays are of different types (in my case, int, double, and char), or if I should rewrite my own typemap.
Thanks for your help !
Anyway, here goes an example
test.h
test.cpp
test.i
setup.py
test.py