Computing generalized Inverse of a square but sparse matrix?
Show older comments
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.
Accepted Answer
More Answers (1)
Christine Tobler
on 8 Jan 2021
0 votes
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).
Categories
Find more on Sparse Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!