pub fn eigen_near(
a: &[f64],
n: usize,
shift: [f64; 2],
) -> Option<([f64; 2], Vec<[f64; 2]>)>Expand description
The eigenvalue of the n x n matrix a nearest shift and its eigenvector, by inverse iteration: (A - shift I) is
factorised (LU with partial pivoting) and solved fifty times, each solve multiplying the part of the nearest
eigenvector by 1 / |lambda - shift| more than any other; then once more from the eigenvalue found, as Rayleigh’s
iteration does, since another eigenvalue (a free machine’s rigid motion at 0) may lie nearly as near the shift and
fade slowly. The vector is scaled so that its largest entry is 1 (real). None where the matrix holds a number that
is not finite.