[Numpy-discussion] List with numpy semantics

Gerrit Holl gerrit.holl@gmail....
Sun Oct 31 12:17:42 CDT 2010


On 31 October 2010 17:10, Nikolaus Rath <Nikolaus@rath.org> wrote:
> Hello,
>
> I have a couple of numpy arrays which belong together. Unfortunately
> they have different dimensions, so I can't bundle them into a higher
> dimensional array.
>
> My solution was to put them into a Python list instead. But
> unfortunately this makes it impossible to use any ufuncs.
>
> Has someone else encountered a similar problem and found a nice
> solution? Something like a numpy list maybe?

You could try a record array with a clever dtype, maybe?

Gerrit.


More information about the NumPy-Discussion mailing list