pub struct ILU0Preconditioner<F> { /* private fields */ }Expand description
Incomplete LU factorization with zero fill-in (ILU(0))
This preconditioner computes an incomplete LU factorization where L and U have the same sparsity pattern as the original matrix.
Implementations§
Source§impl<F: Float + NumAssign + Sum + Debug + SparseElement + 'static> ILU0Preconditioner<F>
impl<F: Float + NumAssign + Sum + Debug + SparseElement + 'static> ILU0Preconditioner<F>
Sourcepub fn new(matrix: &CsrMatrix<F>) -> SparseResult<Self>
pub fn new(matrix: &CsrMatrix<F>) -> SparseResult<Self>
Create a new ILU(0) preconditioner
Trait Implementations§
Source§impl<F: Float + NumAssign + Sum + Debug + SparseElement + 'static> LinearOperator<F> for ILU0Preconditioner<F>
impl<F: Float + NumAssign + Sum + Debug + SparseElement + 'static> LinearOperator<F> for ILU0Preconditioner<F>
Source§fn has_adjoint(&self) -> bool
fn has_adjoint(&self) -> bool
Check if the operator supports adjoint operations
Source§fn matmat(&self, x: &[Vec<F>]) -> SparseResult<Vec<Vec<F>>>
fn matmat(&self, x: &[Vec<F>]) -> SparseResult<Vec<Vec<F>>>
Apply the operator to a matrix: Y = A * X
where X is column-major (each column is a vector)
Auto Trait Implementations§
impl<F> Freeze for ILU0Preconditioner<F>
impl<F> RefUnwindSafe for ILU0Preconditioner<F>where
F: RefUnwindSafe,
impl<F> Send for ILU0Preconditioner<F>where
F: Send,
impl<F> Sync for ILU0Preconditioner<F>where
F: Sync,
impl<F> Unpin for ILU0Preconditioner<F>where
F: Unpin,
impl<F> UnwindSafe for ILU0Preconditioner<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