pub struct Ilu { /* private fields */ }Expand description
An incomplete factorisation A ≈ L U, with L unit lower triangular (the unit diagonal not
stored) and U upper triangular, both by rows.
Implementations§
Source§impl Ilu
impl Ilu
Sourcepub fn ilu0(a: &CsrMatrix) -> Result<Ilu>
pub fn ilu0(a: &CsrMatrix) -> Result<Ilu>
ILU(0): Gaussian elimination row by row (the IKJ variant) in which every update that would
fall outside the sparsity pattern of A is discarded, so L + U has exactly the pattern
of A.
Sourcepub fn ilut(a: &CsrMatrix, drop_tol: f64, max_fill: usize) -> Result<Ilu>
pub fn ilut(a: &CsrMatrix, drop_tol: f64, max_fill: usize) -> Result<Ilu>
Saad’s ILUT(τ, p): eliminate row by row with fill allowed, but drop every multiplier and
every entry of the new row smaller than τ ‖aᵢ‖₂, and keep only the p largest entries of
each of the L and U parts of the row (the diagonal is always kept).
Sourcepub fn solve_transpose(&self, b: &[f64]) -> Vec<f64>
pub fn solve_transpose(&self, b: &[f64]) -> Vec<f64>
Solves (L U)ᵀ x = b.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ilu
impl RefUnwindSafe for Ilu
impl Send for Ilu
impl Sync for Ilu
impl Unpin for Ilu
impl UnsafeUnpin for Ilu
impl UnwindSafe for Ilu
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