Updates a QR factorization to reflect the removal of a single row from the original matrix. The current implementation refits from the reduced matrix; a Givens-rotation path is planned for a future release.
Arguments
- qr_factor
An
amQRfactor object returned byam_qr(), or any object for which a method is defined.- row_idx
Positive integer index of the row to remove.
- X
The original numeric matrix or
adgeMatrixused to computeqr_factor. Required foramQRfactors because they do not store the source matrix.
Examples
if (FALSE) { # \dontrun{
X <- adgeMatrix(matrix(rnorm(40), nrow = 8))
qf <- am_qr(X)
qf2 <- qr_downdate(qf, row_idx = 3L, X = X)
qr_info(qf2)$dim
} # }