nalgebra icon indicating copy to clipboard operation
nalgebra copied to clipboard

It would be great to add LDL decomposition

Open strasdat opened this issue 5 years ago • 2 comments

https://en.wikipedia.org/wiki/Cholesky_decomposition#LDL_decomposition

Or is this the undocumented UDU factorization? That is a little unclear to me. https://github.com/dimforge/nalgebra/blob/dev/src/linalg/udu.rs

strasdat avatar Apr 10 '21 18:04 strasdat

No they are not the same one.

lebensterben avatar Apr 10 '21 18:04 lebensterben

I would second this.

It should(?) be fairly straightforward to re-use the existing code from UDU factorization (#766) and just drop in the LDL algorithm. I have a very basic version of this that I use internally, with added functionality for semi-definite matrices to get around the fact that the Cholesky decomposition only works for strictly positive definite matrices. It is not clear to me why the implementation for UDU was just restricted to positive definite matrices as well.

Fairly new to Rust, but if there is interest I may be willing to have a go at it.

ajefweiss avatar May 06 '25 15:05 ajefweiss