c = np.full((2,2), 7) # Create a constant array print(c)
To avoid the warning, use
np.full((2,2), 7.) or use explicitly for float np.full((2,2),7, dtype=float) or for int np.full((2,2),7, dtype=int)
c = np.full((2,2), 7) # Create a constant array print(c)
To avoid the warning, use
np.full((2,2), 7.) or use explicitly for float np.full((2,2),7, dtype=float) or for int np.full((2,2),7, dtype=int)