[Numpy-discussion] C++ class encapsulating ctypes-numpy array?

Matthieu Brucher matthieu.brucher@gmail....
Wed Mar 19 10:22:27 CDT 2008


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 <Joris.DeRidder@ster.kuleuven.be>:
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080319/895f37ec/attachment.html 


More information about the Numpy-discussion mailing list