I happen to come across the term:
np.array([[0. for _ in range(20)] for _ in range(50)])
It gives me all 0.0 for a matrix of 20 x 50.
However, I don't like this syntax. I am wondering if there alternative way of doing this? I want 0 to be 0.0 (as float).
Thanks