This forum has been archived. All content is frozen. Please use KDE Discuss instead.

triangular solve using single sparse Cholesky factor

Tags: None
(comma "," separated)
torekleppe
Registered Member
Posts
2
Karma
0
Dear All,

In some statistical applications, I need to solve L^T x = b (i.e. not A x = L L^T x = b) many times for different bs where L is a sparse Cholesky factor.
Is there any way of using the internal code in solve() to do this? If not, does anyone have any thoughts on how to best implement this operation using Eigen?

Best regards, Tore Kleppe
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
That's easy:
Code: Select all
SparseLLT<...> llt(A);
x = llt.matrixU().solve(b);
x = llt.permutationPinv() * x;
torekleppe
Registered Member
Posts
2
Karma
0
Thanks! That does the job - Regards, Tore


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]