How can I quickly obtain the inverse of a square sparse matrix?

85 vues (au cours des 30 derniers jours)
Benson Gou
Benson Gou le 22 Juin 2021
Dear All,
I have a square sparse matrix A. I use the following way to obtain its inverse:
invA = A \ eye(size(A));
I am wondering if there is a faster way to obtain invA.
Thanks a lot.
Benson

Réponse acceptée

J. Alex Lee
J. Alex Lee le 22 Juin 2021
potentially, if you have more information about the properties of A, you can specify them in a call to linsolve

Plus de réponses (0)

Catégories

En savoir plus sur Sparse Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by