Appending an existing QR decomposition: qrappend(q0, r0, Ap)

版本 1.1.0.0 (1.2 KB) 作者: Yanlai Chen
Efficiently update a QR decomposition that might be economy size (thin form)
51.0 次下载
更新时间 2017/3/3

查看许可证

This algorithm computes the QR factorization of the matrix "A = q0*r0" with Ap appended at the end via the Modified Gram-Schmidt algorithm. It updates an existing QR decomposition without re-computation. The advantage over qrinsert is that it does not require that "Q must be square", that is, it allows the given QR decomposition to be of "economy size" / "thin form".
The input arguments q0 and r0 can be empty matrices, in that case the algorithm computes a new thin form QR of the matrix Ap.mM is the mass matrix defining a general inner product, setting it to "eye" or not supplying it recovers the regular dot product.

Example:

A = rand(10,5);
B = rand(10,2);
[q0, r0] = qr(A,0); % or qrappend([],[],A);
[q1, r1] = qrappend(q0,r0,B);

引用格式

Yanlai Chen (2024). Appending an existing QR decomposition: qrappend(q0, r0, Ap) (https://www.mathworks.com/matlabcentral/fileexchange/61856-appending-an-existing-qr-decomposition-qrappend-q0-r0-ap), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

Title and description edited.

1.0.0.0