Hi, On my blog, I spoke about the class we used. It is not derived from a Numpy array, it is implemented in terms of a Numpy array ( http://matt.eifelle.com/item/5)
Matthieu 2008/3/19, Joris De Ridder <[EMAIL PROTECTED]>: > > Hi, > > I'm passing (possibly non-contiguous) numpy arrays (data + shape + > strides + ndim) with ctypes to my C++ function (with external "C" to > make ctypes happy). Has anyone made a C++ class derived from a ctypes- > numpy-array with an overloaded [] operator to allow easy indexing > (e.g. x[0][2][5] for a 3D array) so that you don't have to worry about > strides? I guess I'm not the first one thinking about this... > > Cheers, > Joris > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion > -- French PhD student Website : http://matthieu-brucher.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn : http://www.linkedin.com/in/matthieubrucher
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion