This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: "Matrix", "Hermitian"
lu(x, ...)
If A is a Hermitian matrix, then A can be factored as L B t(L) or t(L) B L, where L is unit lower triangular, and B is block diagonal with either 1 by 1 or 2 by 2 diagonal blocks. If A is positive semi-definite, then B is diagonal, and this factorization is a variant of the Choleski decomposition.
library(Matrix) x <- Matrix( rnorm(9), 3, 3) lu(x)