Suppose I run a QR decomposition on a rank-deficient matrix A with pivoting. Is it possible to update/downdate the QR matrix and its pivot in a numerically stable way, or are there cases when this is impossible given A is rank-deficient? For example, let's say column 3 of A is linearly dependent on columns 1 and 2 in A and pivoted to the right end. Is it possible to correctly downdate the QR matrix for the deletion of column 2, which would then make column 3 linearly independent? Or is the only solution in this case to run the QR decomposition from scratch on A with column 2 deleted?
Asking with specific reference to QR decomposition implementations in different languages (Matlab, Python)
I wrote a small test in Python using the qr_delete function from scipy and confirmed that these functions do de-pivot linearly dependent columns when a column they are dependent on is deleted.