Learn R Programming

rTensor2 (version 2.0.0)

LU: LU Decomposition of a Complex Matrix

Description

Decompose a square matrix A into the product of a lower triangular matrix L and an upper triangular matrix U.

Usage

LU(A)

Value

a lower triangular matrix L and an upper triangular matrix U so that A = LU.

Arguments

A

: an \(n\) x \(n\) matrix

Author

Kyle Caudle

Randy Hoover

Jackson Cates

Examples

Run this code
z <- complex(real = rnorm(16), imag = rnorm(16))
A <- matrix(z,nrow=4)
LU(A)

Run the code above in your browser using DataLab