pub struct IluOperator { /* private fields */ }Expand description
ILU preconditioner wrapper implementing LinearOperator
This wraps the ILU preconditioner to work with the LinearOperator interface.
Implementations§
Source§impl IluOperator
impl IluOperator
Sourcepub fn new(preconditioner: IluPreconditioner, n: usize) -> Self
pub fn new(preconditioner: IluPreconditioner, n: usize) -> Self
Create from an ILU preconditioner
Sourcepub fn from_tbem_matrix(matrix: &Array2<Complex64>) -> Self
pub fn from_tbem_matrix(matrix: &Array2<Complex64>) -> Self
Create from a dense matrix with default settings for TBEM
Sourcepub fn from_matrix(
matrix: &Array2<Complex64>,
method: IluMethod,
degree: IluScanningDegree,
) -> Self
pub fn from_matrix( matrix: &Array2<Complex64>, method: IluMethod, degree: IluScanningDegree, ) -> Self
Create from a dense matrix with specified method and degree
Sourcepub fn fill_ratio(&self) -> f64
pub fn fill_ratio(&self) -> f64
Get fill ratio (nnz(L+U) / n^2)
Trait Implementations§
Source§impl LinearOperator for IluOperator
impl LinearOperator for IluOperator
Auto Trait Implementations§
impl Freeze for IluOperator
impl RefUnwindSafe for IluOperator
impl Send for IluOperator
impl Sync for IluOperator
impl Unpin for IluOperator
impl UnwindSafe for IluOperator
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