Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pandas import *
- import scipy
- #import linalg package of the SciPy module for the LU decomp
- import scipy.linalg as linalg
- #import NumPy
- import numpy as np
- t=[[-33,11,0,24],[11,-38,14,-29],[0,14,-45,-29]]
- A=t
- print A
- #now we want to see how A has been factorized, P is the so called Permutation matrix
- P, L, U = scipy.linalg.lu(A)
- print U
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement