Learn R Programming

pbdDMAT (version 0.5-1)

qr: QR Decomposition Methods

Description

qr() takes the QR decomposition.

Usage

# S4 method for ddmatrix
qr(x, tol = 1e-07)

# S4 method for ANY qr.Q(x, complete = FALSE, Dvec)

# S4 method for ANY qr.R(x, complete = FALSE)

# S4 method for ANY qr.qy(x, y)

# S4 method for ANY qr.qty(x, y)

lq(x)

lq.Q(x, complete = FALSE)

Arguments

x, y

numeric distributed matrices for qr(). Otherwise, x is a list, namely the return from qr().

tol

logical value, determines whether or not columns are zero centered.

complete

logical expression of length 1. Indicates whether an arbitrary orthogonal completion of the Q or X matrices is to be made, or whether the R matrix is to be completed by binding zero-value rows beneath the square upper triangle.

Dvec

Not implemented for objects of class ddmatrix. vector (not matrix) of diagonal values. Each column of the returned Q will be multiplied by the corresponding diagonal value. Defaults to all 1's.

Value

qr() returns a list consisting of: qr - rank - calculated numerical rank, tau - pivot - "class" - attribute "qr".

Details

qr.Q() recovers Q from the output of qr().

qr.R() recovers R from the output of qr().

qr.qy() multiplies y by Q.

qr.qty() multiplies y by the transpose of Q.

Functions for forming a QR decomposition and for using the outputs of these numerical QR routines.