SHARE
TWEET

Untitled

a guest Jun 26th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]]])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top