PyNum, A multidimensional array where the elements are arrays?
Duncan Smith
buzzard at urubu.freeserve.co.uk
Mon Dec 1 10:24:25 EST 2003
More information about the Python-list mailing list
Mon Dec 1 10:24:25 EST 2003
- Previous message (by thread): PyNum, A multidimensional array where the elements are arrays?
- Next message (by thread): Looking for a Python accessible OS framework.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Jack Liddle" <jack at thelobsterofmetal.com> wrote in message news:9832606.0312010634.170e50d3 at posting.google.com... > Hi there > > I'm using Numerical Python to handle my arrays but I'm not sure how to > accomplish the following. > > I want a NxNxNxN array where each element of the the array > (A[i,j,k,l]) is itself a 3x3 array. So I can then slice my array > A[:,:,i,j] into planes and start grabbing matrices from it. I need to > slice it in all possible planes and I don't want to start messing > around with nested lists. > > How would I go about doing this in python, I guess in C I would have a > an NxNxNxN array full of pointers to matrix objects, but lifes to > short for C. > Will an NxNxNxNx3x3 array not do the job? Alternatively you can have an NxNxNxN array of type PyObject (less efficient I would think). Duncan
- Previous message (by thread): PyNum, A multidimensional array where the elements are arrays?
- Next message (by thread): Looking for a Python accessible OS framework.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list