pub struct Lu { /* private fields */ }Expand description
P A = L U with partial pivoting.
Implementations§
Source§impl Lu
impl Lu
Sourcepub fn new(a: &Matrix) -> NumericResult<Self>
pub fn new(a: &Matrix) -> NumericResult<Self>
Factor a square matrix.
§Errors
Refuses a non-square or non-finite matrix, and a matrix singular to
working precision (a zero pivot, or a condition estimate above
1 / eps).
Sourcepub fn condition_estimate(&self) -> f64
pub fn condition_estimate(&self) -> f64
Estimate of the 1-norm condition number ||A||_1 ||A^-1||_1. It is
a lower bound, in practice within a factor of 3.
Sourcepub fn solve(&self, b: &[f64]) -> NumericResult<LinearSolution>
pub fn solve(&self, b: &[f64]) -> NumericResult<LinearSolution>
Trait Implementations§
impl StructuralPartialEq for Lu
Auto Trait Implementations§
impl Freeze for Lu
impl RefUnwindSafe for Lu
impl Send for Lu
impl Sync for Lu
impl Unpin for Lu
impl UnwindSafe for Lu
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