Learn R Programming

TensorTools (version 1.0.0)

LU: LU Decomposition of a Complex Matrix

Description

Decomposes a a matrix into the product of a lower triangular matrix and an upper triangular matrix.

Usage

LU(A)

Value

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

Arguments

A

Complex, square matrix of complex numbers

Author

Kyle Caudle

Randy Hoover

Jackson Cates

Everett Sandbo

References

Stewart, G. W. (1998). Matrix algorithms: volume 1: basic decompositions. Society for Industrial and Applied Mathematics.

Examples

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

Run the code above in your browser using DataLab