I'm not quite understand what is the difference between numpy.{typename}, numpy.npy_{typename} and numpy.{typename}_t when i use them from Cython code?
i.e. what is the difference in these types:
# test.pyx
cimport numpy as np
import numpy as np
np.float32
np.npy_float32
np.float32_t
As i understand it now: first type is dynamic, i.e. Cython will generate some code to detect size of that type at runtime. Two other types are static, i.e. code which uses it will be compiled with predefined sizes of each type. Please correct me.
Additional link: https://docs.scipy.org/doc/numpy/reference/c-api.dtype.html#c-type-names