Eigen_UtDU | R Documentation |
Cholesky-'UtDU' decomposition of a symmetric or Hermitian matrix.
Eigen_UtDU(M)
M |
a square symmetric/Hermitian positive or negative semidefinite matrix, real/complex |
Symmetry is not checked; only the lower triangular part of
M
is used.
The Cholesky-'UtDU' decomposition of M
in a list
(see example).
x <- matrix(c(1:5, (1:5)^2), 5, 2) x <- cbind(x, x[, 1] + 3*x[, 2]) M <- crossprod(x) UtDU <- Eigen_UtDU(M) U <- UtDU$U D <- UtDU$D perm <- UtDU$perm UP <- U[, perm] t(UP) %*% diag(D) %*% UP # this is `M`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.