[SciPy-User] Can I get the "rings" of a 2D array?

Charles R Harris charlesr.harris@gmail....
Mon Apr 12 18:16:10 CDT 2010


On Mon, Apr 12, 2010 at 4:55 PM, Jeremy Conlin <jlconlin@gmail.com> wrote:

> I need to get the "rings" of a 2D array; i.e. the first ring would be
> the first and last column in addition to the first and last row, the
> second ring would be the second and second-from-last row and the
> second and second-from-last column---except for what is not in the
> first ring.  Is there a way to slice an array to get this data?
>
>
So will the rings be different sizes or all the same size with the other
elements zeroed?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100412/9ebd51c9/attachment.html 


More information about the SciPy-User mailing list