Created
September 4, 2017 07:28
-
-
Save gdshen/42e55b0184a2785506c4e242c0d09aa8 to your computer and use it in GitHub Desktop.
numpy mgrid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate (0,0), (0,1), ... , (0,4), (1,0), (1,1), ... (1, 4), ..., (4,4) pair | |
np.mgrid[0:5, 0:5].T.reshape(-1, 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment