python Programming Glossary: dtype_t
Numpy vs Cython speed http://stackoverflow.com/questions/7799977/numpy-vs-cython-speed cimport numpy as np DTYPE np.float64 ctypedef np.float64_t DTYPE_t @cython.boundscheck False @cython.wraparound False @cython.nonecheck.. False @cython.nonecheck False cdef _process np.ndarray DTYPE_t ndim 2 array cdef unsigned int rows array.shape 0 cdef unsigned.. cols array.shape 1 cdef unsigned int row cdef np.ndarray DTYPE_t ndim 2 out np.zeros rows cols for row in range 0 rows out row..
|