pub struct Qr { /* private fields */ }Expand description
Householder QR with column pivoting: A P = Q R.
Implementations§
Source§impl Qr
impl Qr
Sourcepub fn new(a: &Matrix) -> NumericResult<Self>
pub fn new(a: &Matrix) -> NumericResult<Self>
Factor an m x n matrix and determine its numerical rank: a pivot
counts when it exceeds max(m, n) eps |r_00|.
§Errors
Refuses a non-finite matrix.
Sourcepub fn condition_estimate(&self) -> f64
pub fn condition_estimate(&self) -> f64
Estimate of the 1-norm condition number of the leading rank x rank
block of R, which equals A’s 2-norm condition number up to a
factor of n.
Sourcepub fn solve_least_squares(
&self,
b: &[f64],
) -> NumericResult<LeastSquaresSolution>
pub fn solve_least_squares( &self, b: &[f64], ) -> NumericResult<LeastSquaresSolution>
Minimise ||A x - b||_2.
§Errors
Refuses b of the wrong length or with non-finite entries, and a
matrix whose rank is below its column count
(NumericError::RankDeficient): the minimiser is then not unique.
Trait Implementations§
impl StructuralPartialEq for Qr
Auto Trait Implementations§
impl Freeze for Qr
impl RefUnwindSafe for Qr
impl Send for Qr
impl Sync for Qr
impl Unpin 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