Matlab 在使用“inv”计算逆时是否使用任何重新排序算法?

发布于 2025-01-07 08:59:44 字数 109 浏览 3 评论 0原文

我正在尝试使用 Matlab biult-in 函数“inv”来计算方阵的逆。 matlab inv() 是否使用任何重新排序算法(在 inv 内部且无需用户指定)来计算逆?

提前致谢..

I am trying to use Matlab biult-in function "inv" to compute inverse of a square matrix. Does matlab inv() use any reordering algorithm (inside inv and with out specifying by the user) to compute inverse?

Thanks in advance..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

原谅我要高飞 2025-01-14 08:59:44

可能会进行行旋转以最小化舍入,但这只是算法的一部分。

你得到的逆数应该是预期的顺序。您这么问是因为有一个您无法解释的不寻常特征吗?

我会问你为什么认为你需要逆。更典型的是使用 LU 分解和前后替换来求解方程,而不是计算完整的逆矩阵。您如何使用结果?

There's probably row pivoting going on to minimize round-off, but that's just part of the algorithm.

The inverse that you get back should be in the expected order. Are you asking because there's an unusual feature that you can't explain?

I'll ask why you think you need the inverse. It's more typical to solve equations using LU decomposition and forward-back substitution rather than computing the full inverse. How are you using the result?

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