Trait array_matrix::matrix::qr_householder::QRHouseholder
source · pub trait QRHouseholder: Matrix {
type OutputQ;
type OutputR;
fn qr_householder(&self) -> (Self::OutputQ, Self::OutputR);
}
Required Associated Types§
Required Methods§
sourcefn qr_householder(&self) -> (Self::OutputQ, Self::OutputR)
fn qr_householder(&self) -> (Self::OutputQ, Self::OutputR)
Returns the Householder QR-decomposition of the given matrix
A = QR
Examples
let a = [
[1.0, 2.0],
[3.0, 4.0]
];
let (q, r) = a.qr_householder();