Loading
Repeatedly pick the largest off-diagonal entry of a symmetric matrix and rotate it to zero with . The matrix becomes diagonal: the diagonal holds the eigenvalues, the rotations the eigenvectors.
. Find the eigenvalues and eigenvectors by one Jacobi rotation.
Check: ✓
Using it on a non-symmetric matrix.
Dividing by zero when a_pp = a_qq.
Taking eigenvectors from the last P only.
A must be symmetric (aᵢⱼ = aⱼᵢ).