pub struct Cholesky { /* private fields */ }Expand description
A = L L^T for a symmetric positive definite matrix.
Implementations§
Source§impl Cholesky
impl Cholesky
Sourcepub fn new(a: &Matrix) -> NumericResult<Self>
pub fn new(a: &Matrix) -> NumericResult<Self>
Factor a symmetric positive definite matrix.
Symmetry is checked to n eps max|a_ij|; only the lower triangle is
used.
§Errors
Refuses a non-square or non-finite matrix, an asymmetric one
(NumericError::NotSymmetric), one with a non-positive pivot
(NumericError::NotPositiveDefinite), and one singular to working
precision.
Sourcepub fn condition_estimate(&self) -> f64
pub fn condition_estimate(&self) -> f64
Estimate of the 1-norm condition number.
Sourcepub fn solve(&self, b: &[f64]) -> NumericResult<LinearSolution>
pub fn solve(&self, b: &[f64]) -> NumericResult<LinearSolution>
Trait Implementations§
impl StructuralPartialEq for Cholesky
Auto Trait Implementations§
impl Freeze for Cholesky
impl RefUnwindSafe for Cholesky
impl Send for Cholesky
impl Sync for Cholesky
impl Unpin for Cholesky
impl UnwindSafe for Cholesky
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