Guest User

Untitled

a guest
Dec 11th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. A = np.random.rand(2,3)
  2. b = np.random.rand(2,1)
  3. Q, R = np.linalg.qr(A)
  4. Qb = np.matmul(Q.T,b)
  5. x_qr = np.linalg.solve(R,Qb)
Add Comment
Please, Sign In to add comment