pub struct ParallelSolver;
Expand description
Parallel-aware solver dispatcher
Implementations§
Source§impl ParallelSolver
impl ParallelSolver
Sourcepub fn conjugate_gradient<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView1<'_, F>,
max_iter: usize,
tolerance: F,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn conjugate_gradient<F>( a: &ArrayView2<'_, F>, b: &ArrayView1<'_, F>, max_iter: usize, tolerance: F, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate conjugate gradient implementation
Sourcepub fn gmres<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView1<'_, F>,
max_iter: usize,
tolerance: F,
restart: usize,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn gmres<F>( a: &ArrayView2<'_, F>, b: &ArrayView1<'_, F>, max_iter: usize, tolerance: F, restart: usize, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate GMRES implementation
Sourcepub fn bicgstab<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView1<'_, F>,
max_iter: usize,
tolerance: F,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn bicgstab<F>( a: &ArrayView2<'_, F>, b: &ArrayView1<'_, F>, max_iter: usize, tolerance: F, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate BiCGSTAB implementation
Sourcepub fn jacobi<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView1<'_, F>,
max_iter: usize,
tolerance: F,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn jacobi<F>( a: &ArrayView2<'_, F>, b: &ArrayView1<'_, F>, max_iter: usize, tolerance: F, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate Jacobi method implementation
Sourcepub fn sor<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView1<'_, F>,
omega: F,
max_iter: usize,
tolerance: F,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn sor<F>( a: &ArrayView2<'_, F>, b: &ArrayView1<'_, F>, omega: F, max_iter: usize, tolerance: F, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate SOR method implementation
Auto Trait Implementations§
impl Freeze for ParallelSolver
impl RefUnwindSafe for ParallelSolver
impl Send for ParallelSolver
impl Sync for ParallelSolver
impl Unpin for ParallelSolver
impl UnwindSafe for ParallelSolver
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