[Cython] buffer types as members of extension types?
Norbert Nemec
Norbert.Nemec.List at gmx.de
Tue Apr 28 17:00:22 CEST 2009
Hi there,
currently, the code snippet
-------------
import numpy
cimport numpy
cdef class myclass:
cdef numpy.ndarray[numpy.float_t] data
-------------
produces the error
"Buffer types only allowed as function local variables"
Is this a fundamental limitation of Cython or just something that has not yet been implemented?
Is there a workaround that allows me to store and efficiently access buffer data in an extension type?
At the moment, this seems to be the major performance bottleneck in my otherwise straightforwardly cythonized program.
Thanks for any help!
Greetings,
Norbert Nemec
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
More information about the Cython-dev
mailing list