Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[0, 1],
- [2, 3],
- [4, 5],
- [6, 7]]
- [[0, 1],
- [6, 7]]
- new = np.fromfunction(lambda i,j: np.stack((old[i],old[j])), (n,n), dtype=int)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement