Skip to main content

ordqz

Function ordqz 

Source
pub fn ordqz<S: Data<Elem = f64>, S2: Data<Elem = f64>>(
    a: &ArrayBase<S, Ix2>,
    b: &ArrayBase<S2, Ix2>,
    sort: &EigenSort<'_>,
) -> Result<OrdQz>
Expand description

The real generalised Schur form with the eigenvalues selected by sort leading (SciPy’s ordqz(a, b, sort=..., output='real')): qz_real, then adjacent block swaps (LAPACK’s dtgsen/dtgexc) built from the generalised Sylvester equation A₁₁R − L A₂₂ = −A₁₂, B₁₁R − L B₂₂ = −B₁₂, whose solution spans the deflating subspaces of the lower block.