powered by
This function decomposes matrix \(V\) into \(V=LDL'\), where \(L\) is a lower triangular matrix with unit diagonal and \(D\) is a diagonal matrix with non-negative terms.
ldlt(A)
list of
list
matrix \(L\)
matrix
matrix \(D\)
symmetric positive-definite matrix
Zhuang, X., 2020, Lecture Notes in Numerical Analysis (MATH 381), University of Alberta.
A <- matrix(c(5,1,1,3),2,2) V <- ldlt(A) V$L V$D V$L %*% V$D %*% t(V$L) A
Run the code above in your browser using DataLab