Fork me on GitHub
#core-matrix
<
2016-03-15
>
Ben Kamphaus22:03:24

Maybe an obvious question, but first time I’ve tried this in core.matrix and I’m finding it a bit tough to locate what I’m looking for. Is there a way to do the equivalent of [index arrays](http://docs.scipy.org/doc/numpy-1.10.1/user/basics.indexing.html#index-arrays) in numpy?

>>> mat
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])

>>> mat[[2,1,0]]
array([[7, 8, 9],
       [4, 5, 6],
       [1, 2, 3]])

>>> mat[[1,1,1,1,1]]
array([[4, 5, 6],
       [4, 5, 6],
       [4, 5, 6],
       [4, 5, 6],
       [4, 5, 6]])