Re: [Numpy-discussion] another little index puzzle

2013-01-21 Thread Henry Gomersall
On Mon, 2013-01-21 at 08:41 -0500, Neal Becker wrote: > I have an array to be used for indexing. It is 2d, where the rows are > all the > permutations of some numbers. So: > > array([[-2, -2, -2], >[-2, -2, -1], >[-2, -2, 0], >[-2, -2, 1], >[-2, -2, 2], > ...

Re: [Numpy-discussion] another little index puzzle

2013-01-21 Thread Robert Kern
On Mon, Jan 21, 2013 at 2:41 PM, Neal Becker wrote: > I have an array to be used for indexing. It is 2d, where the rows are all the > permutations of some numbers. So: > > array([[-2, -2, -2], >[-2, -2, -1], >[-2, -2, 0], >[-2, -2, 1], >[-2, -2, 2], > ... >

[Numpy-discussion] another little index puzzle

2013-01-21 Thread Neal Becker
I have an array to be used for indexing. It is 2d, where the rows are all the permutations of some numbers. So: array([[-2, -2, -2], [-2, -2, -1], [-2, -2, 0], [-2, -2, 1], [-2, -2, 2], ... [ 2, 1, 2], [ 2, 2, -2], [ 2, 2, -1], [ 2