필터 지우기
필터 지우기

Faster inverse of a lower triangular matrix than inv(A)?

조회 수: 16 (최근 30일)
Benson Gou
Benson Gou 2018년 10월 19일
편집: Matt J 2018년 10월 19일
Dear All,
I have a sparse lower triangular matrix A. I want to obtain the inverse of A. A has a size of 6000 X 6000. I find inv(A) takes more than 5 seconds. I do not know if there is a faster approach to get the inverse of A?
Thanks. Bei

채택된 답변

Matt J
Matt J 2018년 10월 19일
편집: Matt J 2018년 10월 19일
The reason I want to obtain the inverse of A is that I need to select a number of rows from inv(A) for further uses. I do not just solve Ax=b linear equation.
The two are almost the same thing:
B=speye(size(A));
rows = B(rowIndices,:)/A
  댓글 수: 1
Benson Gou
Benson Gou 2018년 10월 19일
Thanks a lot, Matt. It works very well. 0.0549 second.
Bei

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Torsten
Torsten 2018년 10월 19일
See here
https://de.mathworks.com/matlabcentral/answers/332233-updating-inverse-of-a-lower-triangular-matrix
why it is a bad idea to invert a lower triangular matrix.
  댓글 수: 1
Benson Gou
Benson Gou 2018년 10월 19일
편집: Benson Gou 2018년 10월 19일
Thanks, Torsten.
The reason I want to obtain the inverse of A is that I need to select a number of rows from inv(A) for further uses. I do not just solve Ax=b linear equation.
I also used the idea of x=A\b to obtain the rows (800 rows) I want to select from inv(A). But it took more than 9 seconds.
Thank you, anyway.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by