LU factorization
[l,u] = lu(
返回一个上三角矩阵一种
)U
和a matrixL
,这样a = l * u
。这里,L
is a product of the inverse of the permutation matrix and a lower triangular matrix.
[L,U,P] = lu(
返回一个上三角矩阵一种
)U
, a lower triangular matrixL
,以及置换矩阵P
,这样P*A = L*U
。语法鲁(一种,'matrix')
is identical.
[L,U,P,Q,R] = lu(
返回一个上三角矩阵一种
)U
, a lower triangular matrixL
,排列矩阵P
和Q
,和一个缩放矩阵R
,这样P*(R\A)*Q = L*U
。语法鲁(一种,'matrix')
is identical.
Calling鲁
for numeric arguments that are not symbolic objects invokes the MATLAB®鲁
function.
The阈值
option supported by the MATLAB鲁
功能不会影响符号输入。
If you use'matrix'
instead of'vector'
, then鲁
returns permutation matrices, as it does by default.
L
和U
are nonsingular if and only if一种
is nonsingular.鲁
还可以计算单数矩阵的LU分解一种
。在这种情况下,L
要么U
is a singular matrix.
Most algorithms for computing LU factorization are variants of Gaussian elimination.