Re: [Numpy-discussion] Memory layout of record arrays

2009-07-31 Thread Nicolas Rougier
I've cooked a very rudimentary implementation of what I would like to have, however I've got a small problem concerning array shape. The idea is to have a parent array (a group) that can be instantiated like a regular array and that build internally all the relevant contiguous child arrays. I wou

Re: [Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread Nicolas Rougier
Thanks for the quick answer. It makes sense. I will have to find some other way to do it then. Nicolas On 30 Jul, 2009, at 18:52 , David Cournapeau wrote: > On Fri, Jul 31, 2009 at 12:53 AM, Nicolas > Rougier wrote: >> >> >> Hello, >> >> I've been using record arrays to create arrays with dif

Re: [Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread David Cournapeau
On Fri, Jul 31, 2009 at 12:53 AM, Nicolas Rougier wrote: > > > Hello, > > I've been using record arrays to create arrays with different types > and since I'm doing a lot of computation on each of the different > fields, the default memory layout does not serve my computations. > Ideally, I would li

[Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread Nicolas Rougier
Hello, I've been using record arrays to create arrays with different types and since I'm doing a lot of computation on each of the different fields, the default memory layout does not serve my computations. Ideally, I would like to have record arrays where each field is a contiguous bloc