LUsplit {optR} | R Documentation |
function to extract Lower and Upper matrix from LU decomposition
LUsplit(A)
A |
: Input matrix |
U : upper triangular matrix
L : Lower triangular matrix
A<-matrix(c(0,-1,1, -1,2,-1,2,-1,0), nrow=3,ncol=3, byrow = TRUE)
Z<-optR(A, method="LU")
LUsplit(Z$U)