>> 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?

Thanks!
--Hoyt

-- 
+++++++++++++++++++++++++++++++++++
Hoyt Koepke
UBC Department of Computer Science
http://www.cs.ubc.ca/~hoytak/
[EMAIL PROTECTED]
+++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to