pub struct Ilu0Preconditioner { /* private fields */ }Expand description
ILU(0) preconditioner — zero fill-in incomplete LU factorization.
Computes factors L and U such that LU ≈ A on the same sparsity pattern as A. The factorization is performed row-by-row (Crout variant).
Implementations§
Source§impl Ilu0Preconditioner
impl Ilu0Preconditioner
Sourcepub fn compute(a: &GpuPrecondCsr) -> SparseResult<Self>
pub fn compute(a: &GpuPrecondCsr) -> SparseResult<Self>
Compute ILU(0) factorization of a (must be square with non-zero diagonal).
§Errors
Returns SparseError::ValueError if the matrix is non-square or if a
zero pivot is encountered during factorization.
Auto Trait Implementations§
impl Freeze for Ilu0Preconditioner
impl RefUnwindSafe for Ilu0Preconditioner
impl Send for Ilu0Preconditioner
impl Sync for Ilu0Preconditioner
impl Unpin for Ilu0Preconditioner
impl UnsafeUnpin for Ilu0Preconditioner
impl UnwindSafe for Ilu0Preconditioner
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