pub struct GpuSolverConfig {
pub max_iter: usize,
pub tol: f64,
pub precond: bool,
pub backend: GpuSolverBackend,
}Expand description
Configuration for GPU iterative solvers.
Fields§
§max_iter: usizeMaximum number of iterations (default 1000).
tol: f64Convergence tolerance on the residual 2-norm (default 1e-8).
precond: boolWhether to apply a Jacobi (diagonal) preconditioner (default true).
backend: GpuSolverBackendBackend to use for matrix-vector products inside the solver.
Trait Implementations§
Source§impl Clone for GpuSolverConfig
impl Clone for GpuSolverConfig
Source§fn clone(&self) -> GpuSolverConfig
fn clone(&self) -> GpuSolverConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuSolverConfig
impl Debug for GpuSolverConfig
Auto Trait Implementations§
impl Freeze for GpuSolverConfig
impl RefUnwindSafe for GpuSolverConfig
impl Send for GpuSolverConfig
impl Sync for GpuSolverConfig
impl Unpin for GpuSolverConfig
impl UnsafeUnpin for GpuSolverConfig
impl UnwindSafe for GpuSolverConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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