an rrqr factorization or rank-revealing qr factorization is a matrix decomposition algorithm based on the qr factorization which can be used to determine the rank of a matrix. the svd can be used to generate an rrqr, but it is not an efficient method to do so. an rrqr implementation is available in matlab.