LU.optR {optR}R Documentation

Solving system of equations using LU decomposition

Description

The function solves Ax=b using LU decomposition (LUx=b). The function handles multple responses

Usage

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

Arguments

A

: Input Matrix

b

: Response

tol

: tolerance

Value

U : Upper part of the triangele is (U) and Lower part of the triangular is L (Diagnoal for the L matrix is 1)

c : Lc=b (where Ux=c)

beta : Estimates

Examples

A<-matrix(c(0,-1,1, -1,2,-1,2,-1,0), nrow=3,ncol=3, byrow = TRUE)
b<-matrix(c(0,0, 1), nrow=3,ncol=1,byrow=TRUE)
Z<-optR(A, b, method="LU")

[Package optR version 1.2.5 Index]