What could be an efficient way of creating numpy array containing the coordinates of vertices of the N-dimensional cube centered at origin of coordinates, given the dimension N.
For example, for N=1 it should return np.array([[1],[-1]])
For N=2 it should return np.array([[1,1],[1,-1],[-1,1],[-1,-1]])
For N=3: np.array([[1,1,1],[1,1,-1],[1,-1,1],[1,-1,-1],[-1,1,1],[-1,1,-1],[-1,-1,1],[-1,-1,-1]])