[Numpy-discussion] List with numpy semantics

Gerrit Holl gerrit.holl at gmail.com
Sun Oct 31 13:17:42 EDT 2010


On 31 October 2010 17:10, Nikolaus Rath <Nikolaus at 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