pub struct ParallelOperations;
Expand description
Parallel-aware matrix operations dispatcher
Implementations§
Source§impl ParallelOperations
impl ParallelOperations
Sourcepub fn matmul<F>(
a: &ArrayView2<'_, F>,
b: &ArrayView2<'_, F>,
workers: Option<usize>,
) -> LinalgResult<Array2<F>>
pub fn matmul<F>( a: &ArrayView2<'_, F>, b: &ArrayView2<'_, F>, workers: Option<usize>, ) -> LinalgResult<Array2<F>>
Choose and execute the appropriate matrix multiplication implementation
Sourcepub fn matvec<F>(
a: &ArrayView2<'_, F>,
x: &ArrayView1<'_, F>,
workers: Option<usize>,
) -> LinalgResult<Array1<F>>
pub fn matvec<F>( a: &ArrayView2<'_, F>, x: &ArrayView1<'_, F>, workers: Option<usize>, ) -> LinalgResult<Array1<F>>
Choose and execute the appropriate matrix-vector multiplication implementation
Sourcepub fn power_iteration<F>(
a: &ArrayView2<'_, F>,
max_iter: usize,
tolerance: F,
workers: Option<usize>,
) -> LinalgResult<(F, Array1<F>)>
pub fn power_iteration<F>( a: &ArrayView2<'_, F>, max_iter: usize, tolerance: F, workers: Option<usize>, ) -> LinalgResult<(F, Array1<F>)>
Choose and execute the appropriate power iteration implementation
Auto Trait Implementations§
impl Freeze for ParallelOperations
impl RefUnwindSafe for ParallelOperations
impl Send for ParallelOperations
impl Sync for ParallelOperations
impl Unpin for ParallelOperations
impl UnwindSafe for ParallelOperations
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