Skip to main content

Module jacobi_eigenvalue

Module jacobi_eigenvalue 

Source
Expand description

The Jacobi eigenvalue method for symmetric matrices (Jacobi, 1846).

A plane rotation J in the (p, q) plane can be chosen so that Jᵀ A J has a zero in position (p, q). Later rotations fill that zero in again, but the sum of squares of the off-diagonal entries falls by 2 a_pq² every time, so sweeping over all pairs repeatedly drives A to a diagonal matrix of eigenvalues; the product of the rotations holds the eigenvectors. The cyclic method converges quadratically once the off-diagonal part is small. It is slower than tridiagonalisation followed by QL (what lib_jsl_linalg does) but simple, highly accurate, and the basis of the one-sided Jacobi SVD.

See the book entry Eigenvalue algorithms.

Structs§

JacobiEigen
Eigenvalues in ascending order, eigenvectors as columns, and the number of sweeps.

Functions§

jacobi_eigen
Cyclic Jacobi: sweeps over all pairs p < q until the off-diagonal norm is below tolerance × ‖A‖_F.