sajad
0
Q:

np.zeros data type not understood

mmatrix = np.zeros((nrows, ncols))
1
import numpy as np
dim = 3 # number of entries
shp = (dim, 1) # shape tuple
x = np.zeros(shp) # second argument 'dtype' is not used, default is 'float'
print(x)
0

New to Communities?

Join the community