In this example:
In [19]: a[[1,2,3],[1,2,3]].shape
Out[19]: (3,)
In [20]: a[1:4,1:4].shape
Out[20]: (3, 3)
In [21]: a.shape
Out[21]: (100, 100)
Why Out[19] is not (3,3)? The reason that I want to use list is because I want to do something like this:
a[[1,8,12],[34,45,50]].shape
So that the result would be a (3,3) matrix.
,
– jedwards May 01 '18 at 15:35]` attempts will do a zip-like operation, where your resulting array will be `[a[1,1], a[2,2], a[3,3]]` -- this is why it's not 3x3 but 3x1.