Equivalent of "spparms" to track algorithm choice for dense matrices ?

조회 수: 1 (최근 30일)
ELSTER NATACHA
ELSTER NATACHA 2019년 7월 11일
편집: ELSTER NATACHA 2019년 7월 12일
Hello,
I would like to solve a linear system A.x = b using the mldivide function. Since I don't completely know the characteristics of the A matrix (modified in a for loop) the scheme given on the help of mldivide is not sufficient.
Thus, I would like to track which algorithm MATLAB is using to solve the inversion by plotting it on my command window. I found a function that allows this algorithm's tracking for sparse matrices ssparms and I am looking for the exact same thing but for dense matrices.
Does anyone have an idea ?

답변 (1개)

Steven Lord
Steven Lord 2019년 7월 11일
Why do you need information about what the mldivide function (or the backslash operator \) is doing? How do you intend to use that information?
The decomposition object may be of interest to you, but it does not give as much information as spparms does.
  댓글 수: 1
ELSTER NATACHA
ELSTER NATACHA 2019년 7월 12일
편집: ELSTER NATACHA 2019년 7월 12일
According to the mldivide algorithm's scheme the matrix I constructed is supposed to be solved using the LDL solver.
Indeed, I know for sure that the matrix A is dense, square and hermitian (checked with the function ishermitian). However on its diagonal its values can be negative and positive, so it checks the conditions for the LDL solver.
Using the decomposition object I imposed the solver as being LDL but I did not find the same results as with the regular mldivide function. After that I set the LU solver and it gave me the same results than the mldivide so I'm wondering why my hermitian condition is not taken into account.

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

카테고리

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