Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. [[0, 1],
  2. [2, 3],
  3. [4, 5],
  4. [6, 7]]
  5.  
  6. [[0, 1],
  7. [6, 7]]
  8.  
  9. 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