Registered Member
|
hello!
When I use the BiCGSTAB to slove the 10000-dimensions sparse matrix, it worked out successfully. But when I use the BiCGSTAB to solve the 250000-dimensions spare matrix which is very similar to the 10000-dimensions spare matrix I solved before in structure, it turned out to be all "nan" value. Can you help me please? Thank you ! By the way, the Simplicilcholesky can solve both the 10000-dimensions and the 250000-dimensions, but I suppose the matrix is not SPD, so I want to examine the results with BiCGSTAB. here is the code:
|
Moderator
|
The BiCGSTAB algorithm is not guaranteed to always converge, especially if the problem is not SPD, so that's not a good option to check the solution of a LDLT factorization. The best is to check the residual error:
|
Registered Member
|
Thank you for your reply!
Then,how can I solve a matrix which is not SPD ? |
Moderator
|
Give a try at SparseLU and SparseQR
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]