In this chapter we focus on algorithms for computing a QR factorization of a tall matrix , where .
Classical methods¶
Classical algorithms for computing the QR factorization, such as the LAPACK methods underlying np.linalg.qr, are typically based on Householder reflections or Givens rotations.
These algorithms are numerically stable and run in operations.
However, these algorithms are inherently sequential, leading to relatively low flop-rates on modern hardware.
The algorithms presented in this chapter address this shortcoming.
Other factorizations¶
Many of the ideas we discuss in this chapter can be used to compute a singular value decomposition (SVD). Alternately, on obtain an SVD decomposition of efficiently from a QR factorization. Simply compute an SVD and then set to obtain an SVD .
Further Reading¶
Epperly, 2024: Accessible blog post introducing randomized Cholesky QR
Fan et al., 2021Balabanov, 2022Higgins et al., 2023Melnichenko et al., 2025: Recent research papers on the topic.
- Epperly, E. (2024). Neat Randomized Algorithms: Randomized Cholesky QR. https://www.ethanepperly.com/index.php/2024/06/25/neat-randomized-algorithms-randomized-cholesky-qr/
- Fan, Y., Guo, Y., Ying, L., & Lin, L. (2021). A Novel Randomized XR-Based Preconditioned CholeskyQR Algorithm. https://arxiv.org/abs/2111.11148
- Balabanov, O. (2022). Randomized Cholesky QR factorizations. https://arxiv.org/abs/2210.09953
- Higgins, Y., Pearson, K., Armstrong, R., Costa, T. S., & Erichson, N. B. (2023). Analysis of Randomized Householder-Cholesky QR Factorization with Multisketching. https://arxiv.org/abs/2309.05868
- Melnichenko, M., Balabanov, O., Murray, R., Demmel, J., Mahoney, M. W., & Luszczek, P. (2025). CholeskyQR with Randomization and Pivoting for Tall Matrices (CQRRPT). In SIAM Journal on Matrix Analysis and Applications (Vol. 46, pp. 1701–1734). Society for Industrial & Applied Mathematics (SIAM). 10.1137/24m163712x