numpy.matlib.zeros(shape, dtype=None, order='C') [source]
Return a matrix of given shape and type, filled with zeros.
| Parameters: |
|
|---|---|
| Returns: |
|
See also
numpy.zeros
matlib.ones If shape has length one i.e. (N,), or is a scalar N, out becomes a single row matrix of shape (1,N).
>>> import numpy.matlib
>>> np.matlib.zeros((2, 3))
matrix([[0., 0., 0.],
[0., 0., 0.]])
>>> np.matlib.zeros(2) matrix([[0., 0.]])
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.matlib.zeros.html