pub fn qz<T: Scalar, S: Data<Elem = T>, S2: Data<Elem = T>>(
a: &ArrayBase<S, Ix2>,
b: &ArrayBase<S2, Ix2>,
) -> Result<QzFactors>Expand description
The generalised complex Schur form of the pencil (A, B) (SciPy’s qz(a, b, output='complex')):
unitary Q, Z with Qᴴ A Z = S, Qᴴ B Z = T upper triangular. The generalised eigenvalues
are S_ii / T_ii (infinite where T_ii = 0). B is first made triangular by a QR
factorisation and A Hessenberg by Givens rotations that keep B triangular; then QZ sweeps
with Wilkinson-type shifts chase a bulge down the pencil until the subdiagonal of S
vanishes. A zero on the diagonal of T (an infinite eigenvalue) is chased to the bottom and
deflated.