matrix.
take
Return an array formed from the elements ofa at the given indices.
Refer tonumpy.take for full documentation.
numpy.take
See also
numpy.matrix.swapaxes
numpy.matrix.tobytes