optR.gauss {optR}R Documentation

gauss to solve linear systems

Description

Function solves linear systems using Gauss Elimination. The function solves equation of form Ax=b to Ux=c (where U is upper triangular matrix)

Usage

## S3 method for class 'gauss'
optR(A, b, tol = 1e-07)

Arguments

A

: Input Matrix

b

: Response

tol

: Tolerance

method

: To be used to perform factorization

Value

U : Upper triangular matrix

c : Transformed b

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="gauss")

[Package optR version 1.2.5 Index]