This function is used to return a new matrix with the values initialized to zeros.
numpy.matlib.zeros(shape,dtype,order)
It accepts the following parameters.
A matrix with uninitialized entries is returned.
import numpy as np import numpy.matlib print(numpy.matlib.zeros((3,3)))
Output:
import numpy as np import numpy.matlib print(numpy.matlib.zeros((3,3),int))
Output:
import numpy as np import numpy.matlib print(numpy.matlib.zeros((3,3),int,'C'))
Output: