如何在朱莉娅(Julia)中稀薄的QR分解?
当我在Julia中的3x2矩阵 a 上执行QR分解时,它给出了 3x3矩阵Q 。我有什么办法可以获得此QR的“薄”版本,在该版本中,它返回了Q(Q)为3x2(与矩阵A相同的尺寸)?我的目标是为的列空间获得正顺序基础,因此我不需要3x3矩阵Q。
When I perform QR decomposition on a 3x2 matrix A in Julia, it gives a 3x3 matrix Q. Is there any way I can get a "thin" version of this QR, where it returns a Q that is 3x2 (same dimensions as matrix A)? My goal is just to get an orthonormal basis for the column space of A, so I don't need a 3x3 matrix Q.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可以通过
矩阵(qr(a))
来实现。QR
不返回矩阵,而是返回可以乘以其他矩阵或轻松提取薄或完整Q矩阵的对象。This can be achieved with
Matrix(qr(A))
.qr
doesn't return matrices, but rather returns an object that can multiply by other matrices or easily extract the thin or full Q matrix.