[SciPy-user] RREF - upper triangular

Travis Oliphant oliphant.travis at ieee.org
Sat Feb 18 15:24:15 CST 2006


Ryan Krauss wrote:

>Is there a scipy function to find the upper triangular form of a
>matrix?  
>
Are you trying to find a LU decomposition?  Or perhaps a QR decomposition?

U is upper triangular and so is R in those decompositions.

 From your later description of row-reduction it sounds like you are 
trying to perform an LU decomposition. 

scipy.linalg.lu

If you are trying to use LU decomposition to solve systems of equations, 
then you should try

scipy.linalg.lu_factor  --- find decomposition
scipy.linalg.lu_solve -- use a decomposition to solve for a particular 
RHS (right-hand-side)

-Travis



More information about the SciPy-user mailing list