如何在朱莉娅(Julia)中稀薄的QR分解?

发布于 2025-02-11 10:52:59 字数 179 浏览 5 评论 0原文

当我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑕疵 2025-02-18 10:52:59

这可以通过矩阵(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文