Re: [Numpy-discussion] custom allocation of numpy array

2009-07-07 Thread Robert Kern
On Tue, Jul 7, 2009 at 17:50, Trevor Clarke wrote: > I'm embedding python and numpy in a C++ program and I want to share some > data owned by C++. I'm able to get the allocation/deallocation and memory > sharing working for a contiguous array. However, I have non-contiguous data > (random sub-array

[Numpy-discussion] custom allocation of numpy array

2009-07-07 Thread Trevor Clarke
I'm embedding python and numpy in a C++ program and I want to share some data owned by C++. I'm able to get the allocation/deallocation and memory sharing working for a contiguous array. However, I have non-contiguous data (random sub-array locations, not a fixed skip factor) and I may not have all