LDU decomposition - sparse matrix

1 reply · 3K views · last reply
Hassan2
Messages
422
Reaction score
5
I have a large sparse symmetric matrix and I'd like to know the number of its negative eigenvalues. To this end, I should perform an LDLT decomposition of the matrix and count the number of negative diagonal entries of the D matrix. This would be equal to the number of negative eigenvalues.

Since I need the diagonal matrix D only, is there an efficient way to acquire D without saving L ? My matrix is large and only the nonzero entries are stored. I can't store the dense lower matrix L.

Your help is appreciated.
 
Maybe algorithms for the similar Cholesky decomposition can help. They are at least stable.