Robert Bradshaw wrote: > I'm not sure if or when either of these will be available, but > neither are trivial. Both questions are probably better asked on the > cython lists. > > - Robert > > > On Jul 22, 2009, at 12:17 PM, Ethan Van Andel wrote: > >> Robert, >> >> Is there any prediction for when numpy complex types will work? >> (outside of the notebook, when compiling via sage -b)
I assume this will happen when Cython is upgraded in Sage, i.e. #6438 / 4.1.1. If it doesn't, please send cython-dev (or me if you can't be bothered) a mail. >> Yet another question: >> >> When I compile my class, I get something like this: >> >> cdef class Riemann_Map: >> cdef int N, B, ncorners >> cdef f >> cdef opp >> cdef double complex a >> cdef np.ndarray[float,ndim = 1] tester >> ^ >> ------------------------------------------------------------ >> >> /home/evlutte/opt/sage-3.2.3/devel/sage-main/sage/plot/riemann.pyx: >> 39:19: Buffer types only allowed as function local variables >> >> Is there any way around this, that is, any way to get efficient array >> performance from my self.something arrays? No; it's a known deficiency, no ETA. (Of course, you can work around it for now by storing a plain np.ndarray and copy it to a local variable manually. Even when this is supported, it will likely be a tiny bit slower than copying to a local variable anyway!...depending on problem size). -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
