How to convert a typed memoryview to an NumPy array in cython? The docs have
cimport numpy as np
import numpy as np
numpy_array = np.asarray(<np.int32_t[:10, :10]> my_pointer)
I took this for my case
np.asarray(<np.float_t[:, :]> my_memview)
Using this the compiler tells me:
Can only create cython.array from pointer or array
Copying or not is not so decicive. I couldn't find any help on this.