I would like a list of 2d NumPy arrays (x,y) , where each x is in {-5, -4.5, -4, -3.5, ..., 3.5, 4, 4.5, 5} and the same for y.
I could do
x = np.ar
We can use arrange function as:
z1 = np.array([np.array(np.arange(1,5)),np.array(np.arange(1,5))]) print(z1) o/p=> [[1 2 3 4] [1 2 3 4]]