34-QR decomposition | R Documentation |
QR factorization and related functions.
## S4 method for signature 'Rcpp_MPCR'
qr(x, tol = 1e-07)
## S4 method for signature 'ANY'
qr.Q(qr, complete = FALSE, Dvec)
## S4 method for signature 'ANY'
qr.R(qr, complete = FALSE)
x |
An MPCR matrix. |
qr |
QR decomposition MPCR object. |
tol |
The tolerance for determining numerical column rank. |
complete |
Should the complete or truncated factor be returned? |
Dvec |
Vector of diagonals to use when re-constructing Q (default is 1's). |
The factorization is performed by the LAPACK routine geqp3()
. This
should be similar to calling qr()
on an ordinary R matrix with the
argument LAPACK=TRUE
.
qr |
Output of |
library(MPCR)
qr_input <-as.MPCR( c(1, 2, 3, 2, 4, 6, 3, 3, 3),3,3,"single")
qr_out <- qr(qr_input)
qr_out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.