Re: [Numpy-discussion] Slicing without a priori knowledge of dimension

2008-08-06 Thread Matthew Czesarski
Dear Hoyt, Thanks -- that hit the spot! Looks like it was a case of me looking for the answer in the wrong place. Assuming that there would be some sophisticated numpy method -- E.g. A.dim_slice( ( 2,5,... ) ) -- that slices up the array and gives you back the sub-full dimensional matrix you're l

[Numpy-discussion] Slicing without a priori knowledge of dimension

2008-08-06 Thread Matthew Czesarski
Dear list. I've got a feeling that what I'm trying to do *should* be easy but at the moment I can't find a non-brute-force method. I'm working with quite a high-rank matrix; 7 dimensions filled with chi**2 values. It's form is something like this: chi2 = numpy.ones((3,4,5,6,7,8,9)) What I n