inv.optR {optR} | R Documentation |
function invert a matrix A using LU decomposition such that A*inv(A)=I
inv.optR(A, tol = 1e-07)
A |
: Input matrix |
tol |
: tolerance |
A : Inverse of Matrix A
# Invert the matrix using LU decomposition
A<-matrix(c(0.6,-0.4,1, -0.3,0.2,0.5,0.6,-1,0.5), nrow=3,ncol=3, byrow = TRUE)
InvA<-inv.optR(A)