> > import numpy as np > > cimport numpy as cnp > > > cdef cnp.float64_t namean(cnp.ndarray[cnp.float64_t, ndim=1] a): > > return np.nanmean(a) # just a placeholder > > > is not allowed? It works for me. Is it a cython version thing? > > (I've got 0.13), > > Oh, that's nice! I'm using 0.11.2. OK, time to upgrade.
Oh wow, does that mean that http://trac.cython.org/cython_trac/ticket/177 is fixed? I couldn't find anything in the release notes about that, but it would be great news. Does the cdef function acquire and hold the buffer? Felix _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion