Skip to main content
QUICK REVIEW

[Paper Review] Routines for the diagonalization of complex matrices

Th. Hahn|ArXiv.org|Jul 12, 2006
Matrix Theory and AlgorithmsComputer Science2 references22 citations
TL;DR

This paper presents a compact, self-contained library of Fortran 77 routines for the eigenvalue decomposition, singular value decomposition (SVD), and Takagi factorization of complex matrices using the Jacobi algorithm. The routines are highly portable, easily adaptable, and include interfaces for C/C++ and Mathematica, with performance validated on random matrices up to size 1000×1000.

ABSTRACT

Jacobi-type iterative algorithms for the eigenvalue decomposition, singular value decomposition, and Takagi factorization of complex matrices are presented. They are implemented as compact Fortran 77 subroutines in a freely available library.

Motivation & Objective

  • To provide a compact, self-contained implementation of matrix diagonalization routines for complex matrices.
  • To support three key decompositions: eigenvalue decomposition, SVD, and Takagi factorization, all based on the Jacobi algorithm.
  • To enable easy integration into user code by minimizing dependencies and installation overhead.
  • To offer accessible interfaces for C/C++ and Mathematica, facilitating testing and interactive use.
  • To ensure portability and adaptability through minimal, well-documented Fortran 77 subroutines.

Proposed method

  • The Jacobi algorithm is used for iterative computation of eigenvalues and singular values via orthogonal transformations.
  • Each routine is implemented as a standalone Fortran 77 subroutine, with source code size around 3 kBytes per routine.
  • The library includes interfaces for C/C++ via a header file that handles data layout differences (row-major vs. column-major storage).
  • A Mathematica interface is provided through a package that exposes high-level functions for eigen-decomposition, SVD, and Takagi factorization.
  • The routines handle complex matrices with proper handling of conjugate transpose operations and support sorting of eigenvalues/singular values.
  • The implementation uses double precision arithmetic and ensures numerical stability through orthogonal iteration.

Experimental results

Research questions

  • RQ1Can a highly compact and self-contained library be developed for complex matrix diagonalization using the Jacobi algorithm?
  • RQ2How does the performance of the Jacobi-based routines scale with matrix size, particularly for small to medium-sized problems?
  • RQ3To what extent can the routines be easily adapted to user-specific conventions without library dependencies?
  • RQ4What is the feasibility and utility of providing interfaces to C/C++ and Mathematica for such a low-level numerical library?
  • RQ5How does the Jacobi algorithm compare in accuracy and convergence to other standard methods for complex matrix decompositions?

Key findings

  • The Jacobi algorithm enables a highly compact implementation, with each routine approximately 3 kBytes in source code size.
  • The routines are self-contained and can be easily extracted and adapted to user-specific coding conventions.
  • The library supports all three key decompositions: eigenvalue decomposition, SVD, and Takagi factorization, with the latter being less commonly available in standard libraries.
  • Performance benchmarks show near-linear scaling in time per matrix size when normalized by dimension cubed, indicating expected O(n³) complexity.
  • On average, about 10–15 sweeps were required to achieve machine precision for random 1000×1000 matrices, confirming robust convergence.
  • The Mathematica interface enables interactive testing and validation of the routines, particularly useful for the non-standard Takagi factorization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.