numpy.zero(4,2,3) code example
Example 1: declare numpy zeros matrix python
import numpy as np
dimensions = (3, 3)
np.zeros(dimensions) # 3x3 zeros matrix
Example 2: np.zeros((3,3))
>>> s = (3,3)
>>> np.zeros(s)
array([[ 0., 0.],
[ 0., 0.]])