May 29, 2008
8:55 p.m.
On Thursday 29 May 2008 16:25:24 Charles R Harris wrote:
* Could somebody explain me what goes wrong in the second case (transpose+view) ? Is it because the transpose doesn't own the data ?
* Is there a way to transform my (3,5) array into a (5,) recordarray without a copy ?
I don't think so. The transpose is just a view, it doesn't move the elements around, =so the three elements you want to be contiguous, aren't. It's possible to transpose in place, but it can be a tricky operation and I don't think it is available in numpy.
Ahah, so that was a problem of contiguity. OK, that makes sense. Thanks.