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

Matthew Czesarski matthew.czesarski at gmail.com
Wed Aug 6 09:46:43 EDT 2008


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 looking for. But it was there all
along as a builtin...

Thanks for the pointer,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080806/4e93a1fe/attachment.html>


More information about the NumPy-Discussion mailing list