Skip to main content

qr

Function qr 

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

The QR decomposition A = Q R of each m x n matrix of a batch, as lax.linalg.qr computes it with LAPACK’s geqrf and orgqr (ungqr for complex numbers).

With full_matrices, Q is m x m and R is m x n; otherwise Q is m x k and R is k x n, where k = min(m, n).

§Panics

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