pub struct SparseLu { /* private fields */ }Expand description
Sparse LU factorisation P A = L U with true row partial pivoting.
Implementations§
Source§impl SparseLu
impl SparseLu
Sourcepub fn perm(&self) -> &[usize]
pub fn perm(&self) -> &[usize]
Get the permutation vector (perm[i] = original row index at position i).
Sourcepub fn l_rows(&self) -> &[Vec<(usize, f64)>]
pub fn l_rows(&self) -> &[Vec<(usize, f64)>]
Get L factor rows (strict lower triangle, unit diagonal implicit).
Sourcepub fn u_rows(&self) -> &[Vec<(usize, f64)>]
pub fn u_rows(&self) -> &[Vec<(usize, f64)>]
Get U factor rows (upper triangle including diagonal).
Sourcepub fn verify_pa_eq_lu(&self, a: &SparseMatrix) -> f64
pub fn verify_pa_eq_lu(&self, a: &SparseMatrix) -> f64
Verify PA = LU for debugging purposes. Returns max absolute difference between PA and LU.
Auto Trait Implementations§
impl Freeze for SparseLu
impl RefUnwindSafe for SparseLu
impl Send for SparseLu
impl Sync for SparseLu
impl Unpin for SparseLu
impl UnsafeUnpin for SparseLu
impl UnwindSafe for SparseLu
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