pub struct Qr { /* private fields */ }Expand description
Economy QR with recomputed column norms and column pivoting.
Convention: A[:, permutation] = Q * R, where Q has m rows and n columns.
Householder reflectors are stored, not a full m*m Q. Only m >= n is supported.
Implementations§
Source§impl Qr
impl Qr
pub fn factor( a: MatrixView<'_>, tolerance: Tolerance, ) -> Result<Self, SolverError>
pub fn rank(&self) -> usize
pub fn permutation(&self) -> &[usize]
pub fn r(&self) -> Result<Matrix, SolverError>
Sourcepub fn q(&self) -> Result<Matrix, SolverError>
pub fn q(&self) -> Result<Matrix, SolverError>
Materialize thin Q only on explicit request.
Sourcepub fn least_squares(
&self,
b: MatrixView<'_>,
) -> Result<LeastSquares, SolverError>
pub fn least_squares( &self, b: MatrixView<'_>, ) -> Result<LeastSquares, SolverError>
Full-column-rank least squares without forming A^T A or an inverse. Rank-deficient and underdetermined minimum-norm problems are NOT approximated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Qr
impl RefUnwindSafe for Qr
impl Send for Qr
impl Sync for Qr
impl Unpin for Qr
impl UnsafeUnpin for Qr
impl UnwindSafe for Qr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more