Registered Member
|
Hi,
I need to compute B* A^-1 * B.transposed() . Both A and B are sparse. Is this possible using the sparse matrix solvers? Thanks in advance traubi |
Registered Member
|
Hi, I am not sure if this is the answer you are looking. Yet, as a general advice you should NEVER build explicitly the inverse of a sparse matrix (since it is in general quite full), but solve the linear system instead. For instance by using superLU or umfpack if the system is relatively small, or by adopting an iterative solver if the system is big. In the latter case the keypoint to obtain an efficient method is to devise an effective preconditioner.
L.F. |
Moderator
|
only if is selfadjoint, because our current LU backends does not support sparse rhs. In this case first solve for A X = B^T, and then compute B * X...
|
Registered Member
|
Hi
Thanks a lot ! I will implement this approach. Cheers Traubi |
Registered Member
|
I have a problem
I use to solve SLEs with sparse matrices library SuperLU. When decomposition no errors. But when the debugger comes to solve(), program terminated and output error about violation of rights of access to memory. (File dgsisx.c of library SuperLU, line 656). And yes, i need incomplete lu-factorization (it used in iterative methods). If used complete factorization is no problems.
Has anyone seen this? And one more question to the developers: when to wait for implementation LU in SparseExtra? |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]