Table of Contents
Fetching ...

Arithmetical enhancements of the Kogbetliantz method for the SVD of order two

Vedran Novaković

TL;DR

This work addresses robustly computing the SVD of general $2\times 2$ matrices by enhancing the classical Kogbetliantz approach. It introduces a three-phase pipeline—almost exact prescaling, highly accurate triangularization when zeros are absent, and an alternative triangular SVD that uses correctly rounded $\mathrm{hypot}$—together with a heuristic to improve left singular-vector orthogonality. The method demonstrates high relative accuracy for the singular values on upper-triangular inputs across a wide safe range and shows improved numerical orthogonality of singular vectors, albeit with a modest speed penalty relative to LAPACK’s xLASV2. The proposed framework provides modular components that can complement existing routines, and the results offer guidance on exponent-range limits and potential hardware-enabled enhancements for improved accuracy and performance in SVD computations.

Abstract

An enhanced Kogbetliantz method for the singular value decomposition (SVD) of general matrices of order two is proposed. The method consists of three phases: an almost exact prescaling, that can be beneficial to the LAPACK's xLASV2 routine for the SVD of upper triangular 2x2 matrices as well, a highly relatively accurate triangularization in the absence of underflows, and an alternative procedure for computing the SVD of triangular matrices, that employs the correctly rounded hypot function. A heuristic for improving numerical orthogonality of the left singular vectors is also presented and tested on a wide spectrum of random input matrices. On upper triangular matrices under test, the proposed method, unlike xLASV2, finds both singular values with high relative accuracy as long as the input elements are within a safe range that is almost as wide as the entire normal range. On general matrices of order two, the method's safe range for which the smaller singular values remain accurate is of about half the width of the normal range.

Arithmetical enhancements of the Kogbetliantz method for the SVD of order two

TL;DR

This work addresses robustly computing the SVD of general matrices by enhancing the classical Kogbetliantz approach. It introduces a three-phase pipeline—almost exact prescaling, highly accurate triangularization when zeros are absent, and an alternative triangular SVD that uses correctly rounded —together with a heuristic to improve left singular-vector orthogonality. The method demonstrates high relative accuracy for the singular values on upper-triangular inputs across a wide safe range and shows improved numerical orthogonality of singular vectors, albeit with a modest speed penalty relative to LAPACK’s xLASV2. The proposed framework provides modular components that can complement existing routines, and the results offer guidance on exponent-range limits and potential hardware-enabled enhancements for improved accuracy and performance in SVD computations.

Abstract

An enhanced Kogbetliantz method for the singular value decomposition (SVD) of general matrices of order two is proposed. The method consists of three phases: an almost exact prescaling, that can be beneficial to the LAPACK's xLASV2 routine for the SVD of upper triangular 2x2 matrices as well, a highly relatively accurate triangularization in the absence of underflows, and an alternative procedure for computing the SVD of triangular matrices, that employs the correctly rounded hypot function. A heuristic for improving numerical orthogonality of the left singular vectors is also presented and tested on a wide spectrum of random input matrices. On upper triangular matrices under test, the proposed method, unlike xLASV2, finds both singular values with high relative accuracy as long as the input elements are within a safe range that is almost as wide as the entire normal range. On general matrices of order two, the method's safe range for which the smaller singular values remain accurate is of about half the width of the normal range.
Paper Structure (13 sections, 8 theorems, 65 equations, 4 figures, 2 tables, 2 algorithms)

This paper contains 13 sections, 8 theorems, 65 equations, 4 figures, 2 tables, 2 algorithms.

Key Result

Lemma 2.1

Assume that $e_{\nu}-p\ge 1$, with rounding to nearest. Then,

Figures (4)

  • Figure 1: Numerical orthogonality of the singular vectors and the relative SVD residuals with $\mathtt{K}$ and $\mathtt{L}$ on random upper triangular double precision matrices.
  • Figure 2: The relative errors in the singular values with $\mathtt{K}$ and $\mathtt{L}$ on random upper triangular double precision matrices, with $\max\kappa_2^{\bullet}\lessapprox 9.45\cdot 10^{1229}$ and $\max\kappa_2^{\circ}\lessapprox 7.32\cdot 10^{10}$.
  • Figure 3: Numerical orthogonality of the singular vectors, the relative SVD residuals, and the relative errors in the singular values with $\mathtt{K}$ on random double precision matrices, with $\max\kappa_2^{\bullet}\lessapprox 1.42\cdot 10^{616}$ and $\max\kappa_2^{\circ}\lessapprox 2.84\cdot 10^{10}$.
  • Figure 4: The observed decay of the relative errors in the smaller singular values by narrowing of the exponent range of the elements of double precision input matrices, where $\kappa_2^{\mathtt{K}}$ falls from $1.59\cdot 10^{329}$ for $\varsigma=953$ to $2.33\cdot 10^{308}$ for $\varsigma=1027$, and $\kappa_2^{\mathtt{L}}$ from $2.23\cdot 10^{656}$ to $4.93\cdot 10^{611}$.

Theorems & Definitions (16)

  • Lemma 2.1
  • proof
  • Corollary 2.2
  • proof
  • Corollary 2.3
  • proof
  • Lemma 2.4
  • proof
  • Lemma 3.1
  • proof
  • ...and 6 more