[Numpy-discussion] Array struct

Matthieu Brucher matthieu.brucher@gmail....
Sun Oct 28 13:46:30 CDT 2007


I think you will have to use non-contiguous arrays, it should be possible.
But I can't help you as I never use them.


2007/10/28, Sean Ross-Ross <srossross@gmail.com>:
> Hi, I am looking to create an __array_struct__ member for a c++
> vector<vector<cppObj>> i have wrapped in python, where cppObj
> contains an array of floats.
> Currently I have created  an __array_struct__ for the cppObj and in
> python I iterate over the vector of vectors and put all of the data
> into a 1-d array.
> Is it possible to do this with an __array_struct__ within c++ for the
> whole object at once? Perhaps creating a float **.
> Thanks for your help
> ~Sean
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion

French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20071028/27dab7dd/attachment.html 

More information about the Numpy-discussion mailing list