Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import numpy as np
  2.  
  3. # Example array
  4. X = np.array([[[0, 0], [1, -1]], [[-1, 1], [0, 0]]])
  5. # Array containing the norms
  6. N = np.vstack((np.linalg.norm(D[0], axis=1), np.linalg.norm(D[1],
  7. axis=1)))
  8. R = np.divide(X, N)
  9.  
  10. R = np.array([[[0, 0], [0.70710678, -0.70710678]], [[-0.70710678, 0.70710678], [0, 0]]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement