- ‘pinv’ requires costly SVD.
- ‘pinv’ does not work with sparse matrix.
Computing generalized Inverse of a square but sparse matrix?
49 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sanwar Ahmad
el 16 de Dic. de 2020
Respondida: Christine Tobler
el 8 de En. de 2021
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.
0 comentarios
Respuesta aceptada
Rishabh Mishra
el 21 de Dic. de 2020
Hi,
The disadvantages of using ‘pinv’ to find inverse of sparse matrix are:
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!
0 comentarios
Más respuestas (1)
Christine Tobler
el 8 de En. de 2021
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).
0 comentarios
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!