Solving large linear system of Ax=b while A is a non-square Matrix?

15 ビュー (過去 30 日間)
ZR
ZR 2019 年 10 月 23 日
コメント済み: ZR 2019 年 10 月 25 日
Hi,
I was using gmres to solve linear sysmtem Ax=b where A is a n*n large square matrix and b is n*1.
However, if A is m*n matrix where m>n that is least square case than can we use some iterative method like gmres (Generalized minimum residual method) or pcg (Preconditioned conjugate gradients method) type approach to solve it faster like for square case.
The basic goal is to solve large non-square matrix A faster for x.
Please help me with the matlab functions that handle this case?
Thanks
  5 件のコメント
ZR
ZR 2019 年 10 月 24 日
I have also test the matlab operator lsqlin() which is even faster than qr().
However, still i feel a more faster operator will be available compare to lsqlin that can solve large matrix A for x.
ZR
ZR 2019 年 10 月 25 日
Although i can solve non-sqaure A matrix using operator qr() but it is not fast as we observe in case of gmres for square matrix A.

サインインしてコメントする。

採用された回答

Matt J
Matt J 2019 年 10 月 23 日
編集済み: Matt J 2019 年 10 月 23 日
In addition to mldivide, as suggested by Walter, you could pre-multiply your equation by A.' to obtain the square symmetric system
(A.'*A)*x=A.'*b
and then use pcg or gmres as before. PCG might be preferable, because the conditioning of the above system is poorer than for the original system A*x=b.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by