qr2: The QR decomposition of a matrix

View source: R/qr.R

qr2R Documentation

The QR decomposition of a matrix

Description

Computes the QR decomposition of a matrix.

Usage

qr2(x, tol = 0.0000001)

Arguments

x

A matrix whose QR decomposition is to be computed.

tol

The tolerance for detecting linear dependencies in the columns of x.

Details

Calls the function base::qr() and returns less compact but more understandable output.

Value

A list of two matrices: Q and R.

See Also

base::qr()

Examples

hilbert <- function(n) { i <- 1:n; 1/outer(i-1,i,"+") }
h5 <- hilbert(5);
qr2(h5)


broman documentation built on July 8, 2022, 5:07 p.m.

Related to qr2 in broman...