LDL matrix factorization

版本 1.0.0 (2.1 KB) 作者: Jan Motl
Decomposition of a matrix into lower triangular matrix L and diagonal matrix D
236.0 次下载
更新时间 2020/4/27

查看许可证

MATLAB includes LDL factorization, which however returns block diagonal matrix D instead of diagonal matrix D. These implementations return true diagonal matrix D.

The package includes two implementations of LDL.
One implementation takes a symmetrical matrix A and returns [L, D] that:
L*D*L' = ldl(A).
The second implementation is convenient whenever you would run LDL on Gramian matrix A:
A=Z*Z'+Λ,
where Z is a potentially long (but slim) rectangular matrix and Λ is a regularization diagonal matrix (can be just all zeros, if you don't need it). The second implementation saves you of explicitly storing the potentially large Z*Z' matrix.

Both implementations are textbook implementations and as such should serve only educative purposes.

引用格式

Jan Motl (2024). LDL matrix factorization (https://www.mathworks.com/matlabcentral/fileexchange/75232-ldl-matrix-factorization), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrix Decomposition 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0