[Numpy-discussion] On my Cython/NumPy project

Matthew Brett matthew.brett@gmail....
Sat Jun 21 11:32:36 CDT 2008


Thanks a lot for the email - it's an exciting project.

> cdef int i = 4, j = 6
> cdef np.ndarray[np.float64, 2] arr = np.zeros((10, 10), dtype=np.float64)
> arr[i, j] = 1

I'm afraid I'm going to pitch into an area I'm ignorant of, and I'm
sorry for that, but do you think there is any way of allowing fast
indexing and operations on arrays that do not have their type declared
at compile time?



More information about the Numpy-discussion mailing list