Skip to article frontmatterSkip to article content

In this chapter we focus on algorithms for computing a QR factorization of a tall matrix ARn×d\vec{A}\in\R^{n\times d}, where ndn\gg d.

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 O(nd2)O(nd^2) 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 A\vec{A} efficiently from a QR factorization. Simply compute an SVD R=UΣVT\vec{R} = \vec{U}' \vec{\Sigma} \vec{V}^\T and then set U=QU\vec{U} = \vec{Q} \vec{U}' to obtain an SVD A=UΣVT\vec{A} = \vec{U} \vec{\Sigma} \vec{V}^\T.

Further Reading

References
  1. Epperly, E. (2024). Neat Randomized Algorithms: Randomized Cholesky QR. https://www.ethanepperly.com/index.php/2024/06/25/neat-randomized-algorithms-randomized-cholesky-qr/
  2. Fan, Y., Guo, Y., Ying, L., & Lin, L. (2021). A Novel Randomized XR-Based Preconditioned CholeskyQR Algorithm. https://arxiv.org/abs/2111.11148
  3. Balabanov, O. (2022). Randomized Cholesky QR factorizations. https://arxiv.org/abs/2210.09953
  4. 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
  5. 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