pub struct PreconditionerSetup;Expand description
Preconditioner setup and application
Implementations§
Source§impl PreconditionerSetup
impl PreconditionerSetup
Sourcepub fn setup_preconditioner(
a: &Array2<f64>,
preconditioner: &PreconditionerType,
) -> Result<Array2<f64>>
pub fn setup_preconditioner( a: &Array2<f64>, preconditioner: &PreconditionerType, ) -> Result<Array2<f64>>
Setup preconditioner matrix
Sourcepub fn apply_preconditioner(
precond: &Array2<f64>,
vector: &Array1<f64>,
preconditioner: &PreconditionerType,
) -> Result<Array1<f64>>
pub fn apply_preconditioner( precond: &Array2<f64>, vector: &Array1<f64>, preconditioner: &PreconditionerType, ) -> Result<Array1<f64>>
Apply preconditioner to vector
Auto Trait Implementations§
impl Freeze for PreconditionerSetup
impl RefUnwindSafe for PreconditionerSetup
impl Send for PreconditionerSetup
impl Sync for PreconditionerSetup
impl Unpin for PreconditionerSetup
impl UnwindSafe for PreconditionerSetup
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