Skip to main content

schur

Function schur 

Source
pub fn schur<T: LinalgScalar>(
    a: &[T],
    batch: usize,
    n: usize,
    vectors: bool,
) -> (Vec<T>, Vec<T>)
Expand description

The Schur decomposition A = Z T Z^H of each n x n matrix of a batch, as LAPACK’s gees (without sorting) computes it: the permutations of gebal, gehd2, orghr, the QR algorithm (lahqr), and gebak. For real matrices, T is quasi-triangular with standardized 2 x 2 blocks for the complex conjugate eigenvalues (lanv2), and Z is orthogonal; for complex matrices, T is upper triangular and Z unitary. Returns T and, with vectors, Z (empty otherwise). Matrices with infinities or NaNs, and matrices on which the QR algorithm does not converge, give NaNs.

§Panics

Panics if a does not have batch * n * n elements.