pub struct Ilut<F> { /* private fields */ }Expand description
ILUT preconditioner: Incomplete LU with threshold-based dropping.
Entries smaller than tau * ||row_i|| are dropped, and at most max_fill
additional entries per row are kept. This gives a good balance between
fill-in and accuracy.
Implementations§
Source§impl<F> Ilut<F>
impl<F> Ilut<F>
Sourcepub fn new(matrix: &CsrMatrix<F>, config: &IlutConfig) -> SparseResult<Self>
pub fn new(matrix: &CsrMatrix<F>, config: &IlutConfig) -> SparseResult<Self>
Construct an ILUT preconditioner from a CSR matrix.
§Arguments
matrix- Square sparse matrix in CSR formatconfig- ILUT configuration (drop tolerance and max fill)
Trait Implementations§
Source§impl<F> Preconditioner<F> for Ilut<F>
impl<F> Preconditioner<F> for Ilut<F>
Auto Trait Implementations§
impl<F> Freeze for Ilut<F>
impl<F> RefUnwindSafe for Ilut<F>where
F: RefUnwindSafe,
impl<F> Send for Ilut<F>where
F: Send,
impl<F> Sync for Ilut<F>where
F: Sync,
impl<F> Unpin for Ilut<F>where
F: Unpin,
impl<F> UnsafeUnpin for Ilut<F>
impl<F> UnwindSafe for Ilut<F>where
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more