On 3/23/07, Sebastian Haase <[EMAIL PROTECTED]> wrote:
> Hold on -- aren't the "..." at the *end* always implicit:
> I you have
> a.shape = (6,5,4,3)
> a[3,2] is the same as a[3,2,:,:]  is the same as a[3,2,...]
>
> only if you wanted a[...,3,2]   you would have to change your code !?
> Am I confused !?

Ha! I knew numpy had some trick up its sleeve! I missed that part from
the numpy book (still digesting it all (the recycled paper doesn't go
down so well ;))), but it says it right there:

    "If the number of objects in the selection tuple is less than N, then ':' is
    assumed for any remaining dimensions."

I think that is exactly what I am looking for-- thanks for making me
aware of it!

Alex
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to