Matrix library (numpy.matlib)#
This module contains all functions in thenumpy namespace, withthe following replacement functions that returnmatrices instead ofndarrays.
Functions that are also in the numpy namespace and return matrices
| Returns a matrix from an array-like object, or from a string of data. |
| Interpret the input as a matrix. |
| Build a matrix object from a string, nested sequence, or array. |
Replacement functions inmatlib
| Return a new matrix of given shape and type, without initializing entries. |
| Return a matrix of given shape and type, filled with zeros. |
| Matrix of ones. |
| Return a matrix with ones on the diagonal and zeros elsewhere. |
| Returns the square identity matrix of given size. |
| Repeat a 0-D to 2-D array or matrix MxN times. |
| Return a matrix of random values with given shape. |
| Return a random matrix with data from the "standard normal" distribution. |