Skip to main content

qz_real

Function qz_real 

Source
pub fn qz_real<S: Data<Elem = f64>, S2: Data<Elem = f64>>(
    a: &ArrayBase<S, Ix2>,
    b: &ArrayBase<S2, Ix2>,
) -> Result<RealQzFactors>
Expand description

The real generalised Schur form of the pencil (A, B) (SciPy’s qz(a, b, output='real')): orthogonal Q, Z with Qᵀ A Z = AA quasi upper triangular and Qᵀ B Z = BB upper triangular. B is made triangular by a QR factorisation and A Hessenberg by Givens rotations that keep B triangular; then Moler and Stewart’s implicit double-shift QZ sweeps — the Francis step applied to A B⁻¹ without forming it — chase bulges down the pencil until A is quasi-triangular. A zero on the diagonal of B (an infinite eigenvalue) is chased to the bottom of the active window and deflated. 2 × 2 blocks with real eigenvalues are split.