Thank you all for your replies.
I had the matrix concept in mind such as
explained in the numpy example.
Rob
On Thu, Apr 18, 2013 at 3:19 PM, Wolfgang Maier <
wolfgang.ma...@biologie.uni-freiburg.de> wrote:
> Robrecht W. Uyttenhove gmail.com> writes:
>
> >
> > Hello,
> > I tried out the follo
Robrecht W. Uyttenhove gmail.com> writes:
>
> Hello,
> I tried out the following
code:y=[range(0,7),range(7,14),range(14,21),range(21,28),range(28,35)]
> >>> y[[0, 1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12, 13],
> [14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27], [28, >
In "Robrecht W.
Uyttenhove" writes:
> I tried out the following code:
> y=[range(0,7),range(7,14),range(14,21),range(21,28),range(28,35)]
> >>> y
> [[0, 1, 2, 3, 4, 5, 6],
> [7, 8, 9, 10, 11, 12, 13],
> [14, 15, 16, 17, 18, 19, 20],
> [21, 22, 23, 24, 25, 26, 27],
> [28, 29, 30, 31, 32, 33,
Robrecht W. Uyttenhove wrote:
> Hello,
>
> I tried out the following code:
> y=[range(0,7),range(7,14),range(14,21),range(21,28),range(28,35)]
y
> [[0, 1, 2, 3, 4, 5, 6],
> [7, 8, 9, 10, 11, 12, 13],
> [14, 15, 16, 17, 18, 19, 20],
> [21, 22, 23, 24, 25, 26, 27],
> [28, 29, 30, 31, 32, 3
Hello,
I tried out the following code:
y=[range(0,7),range(7,14),range(14,21),range(21,28),range(28,35)]
>>> y
[[0, 1, 2, 3, 4, 5, 6],
[7, 8, 9, 10, 11, 12, 13],
[14, 15, 16, 17, 18, 19, 20],
[21, 22, 23, 24, 25, 26, 27],
[28, 29, 30, 31, 32, 33, 34]]
>>> y[1:5:2][::3]
[[7, 8, 9, 10, 11, 12,