From: Sebastian H. <ha...@ms...> - 2003-01-21 18:40:46
|
Hi, I think this is actually quite related to my post from Friday: [Numpy-discussion] make C array accessible to python without copy -> So, to reformulate: Who hold actually the array data in memory? Or: where gets the memory allocated and where/how many pointers to that exist? I understood the answer that Todd Miller gave, that there is such a thing as a "buffer object" that does all the work, so then: one would just have to take that and build a "new" numarray or Numeric structure around it (referring to the Subject of this email) or (in the case of my Friday-email) just have that "buffer object" point to a different memory space (that got already allocated by the C-program) . Agree ? (Did I get it right?) Sebastian Haase ----- Original Message ----- From: "Francesc Alted" <fa...@op...> To: <num...@li...> Sent: Tuesday, January 21, 2003 8:44 AM Subject: [Numpy-discussion] Conversion functions between Numeric and numarray arrays? Hi, Anybody is aware of any function (either in C or Python or a mixture of both) to easily convert Numerical Python arrays from/to numarray arrays? I mean, I would like to use such a funtion that, without having to copy element by element all the data, be able to copy the data buffer (or even use the same if possible at all) from one object to the other. Thanks, |