Matrix library (numpy.matlib
)¶
This module contains all functions in the numpy
namespace, with
the following replacement functions that return matrices
instead of ndarrays
.
Functions that are also in the numpy namespace and return matrices
|
Interpret the input as a matrix. |
|
Note It is no longer recommended to use this class, even for linear |
|
Interpret the input as a matrix. |
|
Build a matrix object from a string, nested sequence, or array. |
Replacement functions in matlib
|
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. |