Open marcodeltutto opened 5 years ago
Currently, it is not possible to access elements of the ndarray from C if the ndarray has more than 3 dimensions. PyArray_AsCArray can be used on 1, 2 and 3 dimensions arrays only: https://docs.scipy.org/doc/numpy-1.13.0/reference/c-api.array.html#c.PyArray_AsCArray. A workaround is needed in the case of 4 or more dimensions.
PyArray_AsCArray
Currently, it is not possible to access elements of the ndarray from C if the ndarray has more than 3 dimensions.
PyArray_AsCArray
can be used on 1, 2 and 3 dimensions arrays only: https://docs.scipy.org/doc/numpy-1.13.0/reference/c-api.array.html#c.PyArray_AsCArray. A workaround is needed in the case of 4 or more dimensions.