Return a matrix of given shape and type, filled with zeros.
Parameters : | shape : int or sequence of ints
dtype : data-type, optional
order : {‘C’, ‘F’}, optional
|
---|---|
Returns : | out : matrix
|
See also
Notes
If shape has length one i.e. (N,), or is a scalar N, out becomes a single row matrix of shape (1,N).
Examples
>>> import numpy.matlib
>>> np.matlib.zeros((2, 3))
matrix([[ 0., 0., 0.],
[ 0., 0., 0.]])
>>> np.matlib.zeros(2)
matrix([[ 0., 0.]])