Learn R Programming

nima (version 0.5.0)

qrD: The QR decomposition of a matrix

Description

Computes the QR decomposition of a matrix.

Usage

qrD(x, tol = 1e-07)

Arguments

x

A matrix whose QR decomposition is to be computed.

tol

The tolerance for finding linear dependence in columns of x.

Value

A list of two matrices: Q and R.

Details

Calls function qr and returns more understandable output.

See Also

qr

Examples

Run this code
# NOT RUN {
hilbert <- function(n) { i <- 1:n; 1/outer(i-1,i,"+") }
h5 <- hilbert(5);
qrD(h5)

# }

Run the code above in your browser using DataLab