Computing generalized Inverse of a square but sparse matrix?

46 ビュー (過去 30 日間)
Sanwar Ahmad
Sanwar Ahmad 2020 年 12 月 16 日
回答済み: Christine Tobler 2021 年 1 月 8 日
I am trying to find the generalized inverse of a square and sparse matrix. I am using Matlab, however pinv(matrix) doesn't work for sparse matrices. If you have any suggestion or algorithm, please share. Thanks in advance.

採用された回答

Rishabh Mishra
Rishabh Mishra 2020 年 12 月 21 日
Hi,
The disadvantages of using pinv to find inverse of sparse matrix are:
  1. pinv requires costly SVD.
  2. pinv does not work with sparse matrix.
Instead, you can use the function ‘pseudo-inverse’ for the same purpose. Refer the following link for documentation of ‘pseudo-inverse’ function.
Hope this helps!

その他の回答 (1 件)

Christine Tobler
Christine Tobler 2021 年 1 月 8 日
If you want to apply pinv(A)*b, you can instead use lsqminnorm(A, b), which also works for sparse matrices and does something equivalent (using QR decomposition instead of SVD).

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by