I know how to get a slice from a Numpy array using the C API this way:
// 'arr' is a 2D Python array, already created
PyObject pyArray = PyArray_FromAny(arr, PyArray_DescrFromType(NPY_FLOAT), 0, 0, NPY_ARRAY_DEFAULT, null);
PyObject slice = PySlice_New(PyLong_FromLong(0), PyLong_FromLong(2), null);
PyObject result = PyObject_GetItem(pyArray, slice);
This basically matches the following Python expression:
arr[0:2]
Now, how can I get a "multi" slice from 'arr'? For instance, how can programmatically write the following expression?
arr[0:2,0:3]