Passing Numpy arrays to a C function for input and output
While not a direct answer to your original question, here’s a much more convenient way to call your function. First, make the prototype of your C function exactly as you would do it in plain C. Since you don’t need rowcount and colcount separately, I’ll collapse them into a single size parameter: void cfun(const double … Read more