I found out the answer from my colleague:
%apply (float* INPLACE_ARRAY1, int DIM1) {(float* data1, int n1), (float* data2, int n2)}; class Class { public: void test(float* data1, int n1, float* data2, int n2) {
Now two numpy arrays are passed to Class :: test.
source share