generate a n-dimensional array of coordinates in numpy,"ndim_grid([2, -2], [5, 3])"