Hi,
This following code gives an very misleading error message. It says
there is something wrong with the definition of another_array (than
ndarray is not a type identifier). If you comment out the definition
of another_array, then it gives the correct (I assume) error message:
that Buffer types can only be local.
At least, I think that is the case.
Cheers,
Brett
import numpy as np
cimport numpy as np
cimport cython
cdef class Boodle:
cdef np.ndarray[double, ndim=1] an_array
def __cinit__(self):
cdef np.ndarray[double, ndim=1, mode="c"] \
another_array = np.zeros(self.E, dtype=np.float64)
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev