Skip to content

Instantly share code, notes, and snippets.

@c-rhodes
Created October 28, 2014 23:37
Show Gist options
  • Save c-rhodes/12ee674cbf0a9c86cbcb to your computer and use it in GitHub Desktop.
Save c-rhodes/12ee674cbf0a9c86cbcb to your computer and use it in GitHub Desktop.
import numpy as np
# shape (3, 3, 3, 3)
l = np.array(range(81)).reshape((3, 3, 3, 3))
for w in range(3):
for x in range(3):
for y in range(3):
for z in range(3):
print(l[w][y][x][z], end=" ")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment