inv.optR: Invert a matrix using LU decomposition

Description Usage Arguments Value Examples

View source: R/inv_optR.R

Description

function invert a matrix A using LU decomposition such that A*inv(A)=I

Usage

1
inv.optR(A, tol = 1e-07)

Arguments

A

: Input matrix

tol

: tolerance

Value

A : Inverse of Matrix A

Examples

1
2
3
# 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)

optR documentation built on May 29, 2017, 2:10 p.m.

Related to inv.optR in optR...