0
votes

I am calling c++ function from python using pybind11 and it has to return a multidimensional array as a numpy array. Array is int array[100][100][3].

Also what if I just have a pointer to that array? How do I return it to python as a numpy array? I would try to avoid any copying if possible.