core-matrix

kaiyes 2016-03-15T03:57:59.000010Z

@kaiyes has joined the channel

gowder 2016-03-15T05:25:08.000011Z

@gowder has joined the channel

Ben Kamphaus 2016-03-15T22:50:24.000012Z

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]])