Learn R Programming

optR (version 1.2.5)

LUsplit: Function to extract Lower and Upper matrix from LU decomposition

Description

function to extract Lower and Upper matrix from LU decomposition

Usage

LUsplit(A)

Arguments

A
: Input matrix

Value

U : upper triangular matrixL : Lower triangular matrix

Examples

Run this code
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)

Run the code above in your browser using DataLab