For the case of PA=LU factorization, I found some documents which tell that it may delete the probability of having 0's on the diagonal of Matrix A. But I am not sure if I got it right. If so, what is the problem of having 0's on the diagonal of Matrix A?
Other questions which are related, to which I couldn't find any easy explanation:
- What are the advantages / disadvantages of LU factorization? And when to use it?
- What are the advantages / disadvantages of PA=LU factorization? And when to use it?
- What are the advantages / disadvantages of Cholesky factorization? And when to use it?
- What are the advantages / disadvantages of QR factorization? And when to use it?
Thank you for any help!
These are some examples here...ok. For the LU decomposition there exists matrices which are pathologically ill-conditioned. There is a book on them by Nicholas Higham. He published a matrix testing thing to demonstrate some of this, however some of it still exists in Matlab. I can't find these at the moment. It's particularly hard to demonstrate this as the solver are so good. Matlab has a chart which follows like.
Simply, for the questions.
The PLU is more numerically stable than the general LU decomposition. It actually isn't used in practice. It is what they are referred to. Following here.
The advantage of the knowing the rank of the matrix generally people want to know the rank of the matrix. There is a command for the rank. However, I believe that newer techniques are based on low-rank approximations. E.g. like the following.
Now these are machine precision because the rank is actually 3. To generate a low rank rank approximation we can do the following..I technically did but..
Technically the QR decomposition should be used when the condition number of the matrix is high. E.g. you can generate a matrix with a bad condition number
and the QR decomp should perform better at solving the system