Cython memoryviews: wrapping c function with array parameter to pass numpy array
问题 I am trying to use Cython to wrap c function with an array parameter ( quick_sort() ), so I can pass a numpy array to it. I've searched the documentation, SO and web for a working, minimal example but didn't find it. I've tried several possibilities but without any progress, so please help me to figure it out. Here are my files: quicksort.c #include <stdio.h> void quick_sort (int* a, int n) { int i, j, p, t; if (n < 2) return; p = a[n / 2]; for (i = 0, j = n - 1;; i++, j--) { while (a[i] < p)