LQdecompose: LQ Decomposition

Description Usage Arguments Value Examples

Description

Decompose a matrix into a Lower triangular matrix L and an orthogonal matrix Q

Usage

1

Arguments

mat

a matrix of real numbers

Value

list containing L and Q matrices

Examples

1
LQdecompose(rbind(c(2,-2,18),c(2,1,0),c(1,2,0)))

Example output

$L
            [,1]          [,2]          [,3]
[1,] -18.2208672 -2.532680e-16  4.270531e-16
[2,]  -0.1097643 -2.233372e+00  0.000000e+00
[3,]   0.1097643 -1.796408e+00 -1.326978e+00

$Q
           [,1]       [,2]        [,3]
[1,] -0.1097643  0.1097643 -0.98787834
[2,] -0.8901121 -0.4531480  0.04855157
[3,]  0.4423259 -0.8846517 -0.14744196

SolveRationalMatrixEquation documentation built on May 2, 2019, 2:45 p.m.