[Numpy-discussion] On my Cython/NumPy project

Matthew Brett matthew.brett at gmail.com
Sat Jun 21 12:32:36 EDT 2008


Hi,

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?

Cheers,

Matthew



More information about the NumPy-Discussion mailing list