On Feb 27, 2009, at 12:46 PM, Dan wrote: > I need to computer the sum of the absolute differences between two > arrays of bytes. The underlying C++ library I'm using (Qt) gives me > address of the arrays and the number of bytes they contain. > > I can pass those values to my Cython function but how do I cdef in it > so that it uses those value to refer to the array that's already in > memory rather than creating a new one?
I'm sure this can be done, but we'd need more details to answer your question. Are you using some Python wrapper of Qt, or are you calling Qt directly from Cython? How are you getting your data? -Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
