matrix.
reshape
Returns an array containing the same data with a new shape.
Refer tonumpy.reshape for full documentation.
numpy.reshape
See also
numpy.matrix.repeat
numpy.matrix.resize