On Sep 2, 2008, at 1:21 AM, Hoyt Koepke wrote: >>> I was reading: http://wiki.cython.org/tutorials/numpy >>> >>> and I am confused on the difference between: >>> >>> A) >>> >>> cimport numpy as np >>> cdef np.ndarray h = np.zeros([xmax, ymax], dtype=DTYPE) >>> >>> and >>> >>> B) >>> >>> cimport numpy as np >>> cdef np.ndarray[DTYPE_t, ndim=2] h =np.zeros([xmax, ymax], >>> dtype=DTYPE) > > A quick clarification for my own understanding. Does B provide > everything that A does? Or are some operations slower?
B is a superset of A. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
