UL factorization
by Robert Piche
25 Apr 2008
(Updated 28 Apr 2008)
[U,L]=ul(A) returns a permuted unit upper triangular matrix U and a lower triangular matrix L such t
|
Watch this File
|
| File Information |
| Description |
[U,L]=ul(A) returns a permuted unit upper triangular matrix U and a lower triangular matrix L such that A = U*L. The UL factors can be used for solving linear equations, similarly to the factors of the LU decomposition. The function calls Matlab's built-in lu function, so it works for full or sparse, real or complex, square or (for more recent Matlab versions) rectangular matrices. The m-file is just 4 lines:
function [u,l]=ul(A)
[u,l]=lu(A(end:-1:1,end:-1:1));
u=u(end:-1:1,end:-1:1);
l=l(end:-1:1,end:-1:1); |
| MATLAB release |
MATLAB 5.2 (R10)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 05 May 2008 |
Tim Davis
|
|
|
|
Contact us at files@mathworks.com